News for hackers. Stuff that matters.
Re:Ask HN: Share your best terminal tricks by KishanB on Tuesday August 15, 2017 @01:56AM (#15015864)
To clear only the contents of a file (my most used and most favourite one esp with application logs)

cat /dev/null > any_file.txt

There are no comments on this comment yet.