empty a log?

echo > /var/log/whatever

would do.

On nano, you could press CTRL+K several times. Or, in (v)im, press v (enter visual mode), G (go to last line) and then d (delete).
 
Back
Top