EN
Linux - how to empty the file from command line?
1 answers
13 points
How to remove the content of a file under linux from command line level?
I do not want to remove the entire file and create new file.
I just want to clear the entire file to 0 bytes.
What is the best way to do it?
1 answer
1 points
Run following command:
xxxxxxxxxx
1
echo "" > /path/to/my/file
0 commentsShow commentsAdd comment