delete contents of a file with contents code example Example: bash command to empty textfile : > file.log