Pages

Saturday, November 17, 2012

Truncating log files in UNIX/Linux

Most of the time we need log files to be truncated for many reasons. We can use the below command to truncate the file contents.


sudo cp /dev/null trafficking.log

2 comments: