4Sep/092
How to zero out a file in Linux
Ever need to quickly clear a file out in Linux? Maybe a log file that is growing out of control? Rather than delete it, try this:
[dacaprice@fedora10 ~]$ > /var/log/messages
Now your messages file is empty, and the file retains its permissions.
May 19th, 2011 - 17:32
PERFECT!!! Thanks!
September 15th, 2011 - 03:17
Thanks a lot!!!