Last Updated: February 25, 2016
·
671
· mechastorm

Clear all contents of a file from command line

echo '' > path/to/file

or

cat /dev/null > path/to/file