X

Select Your Country

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X

Select Your Currency

Türk Lirası $ US Dollar

How to specify last number of lines in Linux tail command

How to specify last number of lines in Linux tail command
HomepageKnowledge BaseGeneralHow to specify last number of lines...
How to specify last number of lines in Linux tail command

If you want to display the desired last number of lines with Linuxtail, it will be sufficient to specify a number with the -n parameter.

For example :

To show the last 100 lines in the mail.log file and watch them live:

tail -f -n 100 /var/log/mail.log

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?
(489 times viewed. / 0 people found helpful.)