Category : Logs

> logfile or cat /dev/null > logfile if you want to be more eloquent, will empty logfile (actually they will truncate it to zero size). You can also use truncate logfile –size 0 to be perfectly explicit or, if you don’t want to, rm logfile (applications usually do recreate a logfile if it doesn’t exist ..

Read more