How to Get/Print First n lines of very huge file.

Following linux command can do the trick.

head -n file.txt

replace n with your desired lines
If you want first 10 lines then execute following command on terminal.

head -10 file.txt

About Jaffar Hussain

Jaffar Hussain is an Enthusiastic Software Engineer having vast experience in Zend, SugarCRM, Laravel php frameworks and good command on databases Mysql, MongoDB, SqlServer 2008.