Handy Hints: Emptying log files
Posted by Anthony Batchelor on April 16th, 2009 filed in How-to, sys-adminWhen emptying log files, don’t just rm log_file.log as the disk space won’t be freed until the application that is logging is restarted.
It is better to use > log_file.log as that will allow the file system to free the space that is used by the open file.


Leave a Comment