Simply issue the following command by replacing the filename with your filename. cat /dev/null > filename