How would you truncate a log file that is growing too large
if you don't have space to compress it or to move it
somewhere else? How would you do it?
Answers were Sorted based on User's Feedback
Answer / bipin bapurao sautadekar
more two commands to truncate the file.
# cat /dev/null > filename
# cat > filename and then press ctrl+c
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / syed
Why not you try by using below command
> <file name>
| Is This Answer Correct ? | 10 Yes | 2 No |
What is difference between incremental backup and differential backup?
how will you execute backup and restore using the tar command in a single command
What are configuration files and to configure it in VCS
how many clients have in our server ? how we find that?
How to enable the crashdump?
Where do you get Alarm prompt?
How to delete “abc” files using find command
How to configure domain controller in SAMBA using SOLARIS 10 OS and How to centralize domain name and creating users.How to share files for WINDOWS XP clients
how we can create user in solaris?
in solaris performance tuning what fields we check with IOSTAT, VMSTAT and NETSTAT?
May I know the difference between the RAID and Volume Manager?
My solaris system has 16GB RAM and swap. /tmp is associated to swap. We use vmstat command to get used system memory. We observe that once we fill up /tmp, it reflects in vmstat command. My intention is only to get overall used memory in RAM. 1. Can you let me know the if there is a solaris command to just get used memory in RAM? 2. How is /tmp filling up associated to "free memory" in vmstat command?