linux command to clear content of file code example Example: bash command to empty textfile : > file.log