logfile" /> logfile"/>

Empty Linux log files

If you echo nothing to a file, it will clear the content to empty it. Just using sudo will not work, you need to be root!

sudo su
echo "" > logfile