Thursday, October 2, 2008

How to truncate a file to zero length ?

ls -l filename
cat /dev/null > filename

ls -l filename

No comments:

Post a Comment