Home TroubleshootingOperating System Display last few lines for a file in linux shell

Display last few lines for a file in linux shell

by Ben

To display the default last 10 lines for a file…

tail error_log.txt

To display a specified no of lines for a file…

tail -15 error_log.txt

You may also like

Leave a Comment