OpenSource For You Empty a file using cat 2014-02-10 - —Prashant Shah, pshah.mumbai@gmail.com To delete the contents of a large text file just run the following command:$cat /dev/null > filename