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 |
How to change rsc ip in sun V490?
Have you done the patching, the patching is done by you only or some one will assign to you?
what are the alarms in solaris?
Disaster recovery steps if OS corrupted
What is different between crontab and at command?
Which file to be configuring the logs messages (like: /var/adm/message etc…)
What is encapsulation?
How can you create mount points in solaris?
What is default permission of /etc/passwd , /etc/shadow files
How to start / stop the nfs server
What are configuration files and to configure it in VCS
How to create swap file