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 

Home Directory Add a comment
iqbal
asked Sep 19 2018

Answer

0

Try using the following command

truncate -s 0 directory-name/* &> /dev/null
Add a comment
gokulravichandran2
asked Sep 19 2018
edited Oct 30 2018
Post your Answer