Clear a file without deleting it linux by # It will empty the file but does not delete it. > fileName.txt> fileName.txt Please follow and like us: