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