Quick Tip: 3 Ways To Truncate a File in Linux
The following are 3 quick ways to delete the contents of (truncate) a file in Linux: Truncatebash$ truncate -s 0 filename.txtI/O Redirectionbash$ > filename.txt/dev/nullbash$ cp...
The following are 3 quick ways to delete the contents of (truncate) a file in Linux: Truncatebash$ truncate -s 0 filename.txtI/O Redirectionbash$ > filename.txt/dev/nullbash$ cp...