Your server logs killing you?
Not anymore, here is a quick way to truncate the big log file to zero (make it empty).
Command:
cat /dev/null > [some_file]
Example:
cat /dev/null > /var/log/message
This will truncate /var/log/message file.
Your server logs killing you?
Not anymore, here is a quick way to truncate the big log file to zero (make it empty).
Command:
cat /dev/null > [some_file]
Example:
cat /dev/null > /var/log/message
This will truncate /var/log/message file.
No Comments