Author Topic: How To Display Show Get Last 10 Lines From A File In Linux Shell Command  (Read 3779 times)

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
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:

Code: [Select]
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:

Code: [Select]
tail -15 error_log.txt