1 Answer
On CentOS Distro,to empty the file contents,use the following commands
truncate -s 0 filename
here in the above command -s indicates size where we are resizing the file to zero
Your Answer
x