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 delete a service group
What command can be used in running a background process?
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 can youy check the disk status in , is it locally connected or remotely connected?
When iam checking the services its showing unintialized then what should i do step by step.pls tell me the answer as soon as posible.
Explain setuid, setgid and stickybit
How to Create a snapshot volume
how to find bad disk in VERITAS VOLUME MANAGER
How to find the network card speed
How to scan newly added disks to system?
How to check the communication between 2 nodes?
Explain FSCK