commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Empties all files in /var/log over 5000k. Useful if /var goes crazy or if you just haven't cleaned up in a while.
There are 7 alternatives - vote for the best!
you don't need to echo, just a plain redirect is enough to empty the file
If you can do better, submit your command here.
You must be signed in to comment.