linux remove contents of file without deleting code example Example: bash command to empty textfile : > file.log