How to zero out a logfiles

Jim Horwath jim.horwath at rcn.com
Wed Mar 31 16:16:24 EST 2004


Hi all,

I have been using sudo for a few months and I'm still 
learning the ropes.  I need to zero a logfile with sudo, but 
I can't get the '>' syntax just right.  I tried to search 
the archives but didn't find any hints.  I can't be the 
first (or last) person who wants to do this.

For example:

sudo echo > /var/adm/logfile

or something similiar


Thanks in advance,
Jim



More information about the sudo-users mailing list