How to remove first n lines from a text file? Get link Facebook X Pinterest Email Other Apps November 21, 2011 On Linux is quite easy. tail -n +100 largefile.txt > largefile.txt.tmp mv largefile.txt.tmp largefile.txt The above sample will remove the first 100 lines. Read more