remove file contents inside the file in ubuntu code example Example: bash command to empty textfile : > file.log