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 |
Explain setuid, setgid and stickybit
What are the Patch Management Issues you have faced and how did you resolve them?
what are the solaris commands? how can i use them? are my requirements plz post it.
How to modify network card speed
what is 2 in uadmin 2 0 command in solaris
how to now the network speed, whether it is a full duplex or half duplex? and what is full duplex and half duplex
What is UMASK
How will you rectify the root passwd in solaris
what is mount ? in that what will happen exactly ?
How to lock the user id in solaris?
How do you add the disk without reboot the server?
Which file maintain the kernel