Last Updated: February 25, 2016
·
650
· mechastorm

Clear all contents of a file from command line

echo '' > path/to/file

or

cat /dev/null > path/to/file