Quickest Way to Truncate a File in Linux
Ready? It’s:
:> filename
(i.e. colon greater-than followed by the name of the file). This can also be used to create a new, empty file.
Tags: Tips
This entry was posted
on Tuesday, May 20th, 2008 at 10:35 am and is filed under Linux.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.