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 stop if Solaris system it rebooting continually. What is the steps to come normal position.
how to use the command "top" in solaris 10
What is different between crontab and at command?
If you have multiple ethernet interfaces, how do you keep it from routing between them?
How will you take ufsdump and ufsrestore in a sing command line?
How do you check the run level
How will you ad new aliases name
If the boot block is failed then how can you recover in VxVm?
How can we check the status of CPU at firmware
If you have multiple ethernet interfaces, how do you keep it from routing between them?
usage of temp directory should be restricted to 1 gb if total temp directory size is 5 gb?
how to see particular job whether completed or not?