How To Display Show Get Last 10 Lines From A File In Linux Shell Command

Started by admin, July 03, 2010, 03:57:13 AM

Previous topic - Next topic

admin

If you have a large file say error log and you want just to see the last 10 lines from you Linux shell just use "tail" command:

tail error_log.txt

If you want to display a specific number of lines for example last 15 lines you can do that by adding that number as a parameter like:

tail -15 error_log.txt