Tips: Empty A File in Unix Using >

If you want to empty a file’s content in a Unix based system then simply use > like so: $ > /var/log/foo.txt ...
Neelkanth Ram
8 sec read