how to delete all contents of file in terminal code example Example: bash command to empty textfile : > file.log