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
logfile" /> logfile"/>
My personal knowledge base, online.
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