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 remove the root mirror
Explain inode
What are the differences between the command line and graphical user interface?
Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 755 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please every body and wite the proper answer. Thanks in Advance
How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod and which file we need to change? this is not for existing user
How to find the plex, sub disk, Volume group, disk status, free spaces, disk controller, Volume controller?
Which command to lock the user Account?
As a user how he can change is passwd with root privilege.
Explain about Vxrecover?
How do you find the number of Network card attached to your server ?
I don’t want to ask password reset in ever month to particular user. How to enable the same for only one user.
How to review multiple MAC Addess in Solaris?