Developers Heaven Forum

Operating Systems => Lunix & Unix => Topic started by: admin on July 03, 2010, 03:57:13 AM

Title: How To Display Show Get Last 10 Lines From A File In Linux Shell Command
Post by: admin on July 03, 2010, 03:57:13 AM
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