this one is pretty useful.
in order to clear the contents of “file.ext”, just:
$>file.ext
You’re actually just putting a null content on the file, but it’s a very effective way to quickly clear a file contents on unix, especially if you want to keep permissions, etc.
Very useful for clearing error logs.

![[del.icio.us]](http://techtrouts.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://techtrouts.com/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://techtrouts.com/wp-content/plugins/bookmarkify/facebook.png)
![[Twitter]](http://techtrouts.com/wp-content/plugins/bookmarkify/twitter.png)
February 5th, 2009 at 7:08 pm
thxalot ;-)