0

empty the contents of all files

Please Help me with this. I want to know

How to empty the contents of all files in a directory?

 

Thank you 

iqbal
asked Sep 18, 2018
1 Answer
0

Try using the following command

truncate -s 0 directory-name/* &> /dev/null
View More
gokulravichandran2
answered Sep 19, 2018
Your Answer
||||
x
 
100:0

Related Tutorials in empty the contents of all files

Related Tutorials in empty the contents of all files

Related Forums in empty the contents of all files

Related Forums in empty the contents of all files