Clear a log file out
> filename
or
echo -n > filename
or
cat /dev/null > filename
Written by Ian Vaughan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Command line
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#