[Linux command] Empty all files in a folder

This command in one line allows to empty all the files (readable of cours) in a folder

 

find . -type f -exec sh -c '>{}' \;

 

Advertisements