A quick way to truncate big file to zero

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.

Tagged with 
About sepedatua
I am nothing special, of this I am sure. I am a common man with common thoughts and I’ve led a common life. There are no monuments dedicated to me and my name will soon be forgotten, but I’ve loved another with all my heart and soul, and to me, this has always been enough.

This site uses Akismet to reduce spam. Learn how your comment data is processed.