linux ubuntu empty contents without removing code example Example: bash command to empty textfile : > file.log