How To Display Show Get Last 10 Lines From A File In Linux Shell Command
how to display show get last 10 lines from a file in linux shell command
how, to, display, show, get, last, 10, lines, from, a, file, in, linux, shell, command
How To Display Show Get Last 10 Lines From A File In Linux Shell Command
Post Description: how to display show get last 10 lines from a file in linux shell command
POST# 214
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: How To Display Show Get Last 10 Lines From A File In Linux Shell Command
i had a very large file in my linux dedicated server i leased from www.webune.com and i wanted to see what were the last list, it was an error log file and it was huge, but opening would mean i would have to wait a while just to see the last lines. well, linux being such a wonderful operating system, it has the tail command so to see the last 10 lines on my error log file all i had to do is send this command in the linux shell and it would get and show me the last ten lines:


     Code:
tail error_log.txt


hey wait a minute, what about if you wanted to display the last 15 lines?
well you can do that with tail: this is how you would display them:


     Code:
tail -15 error_log.txt


you can change 15 to whatever number of lines you want


No Repies
(0) Comments for How To Display Show Get Last 10 Lines From A File In Linux Shell Command

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload