Featured

    Featured Posts

tail command

The tail command displays, by default, the last 10 lines of a text file. This command is very useful when you are examining some recent activity in log files.
Here is an example:
linux tail command
In the picture above you can see that the last 10 lines of the /var/log/messages file are displayed.
The tail command can be used with various options. For example, if you would like to display the last 5 lines of a file you can use the -n option:
linux tail command n option
Another option that you will find handy is the -f option. This option keeps the file open and displays new lines that are added to the file.
author

Author Name

Author Description!

Get Free Email Updates to your Inbox!

Post a Comment

www.ccna.ma

yu
Powered by Blogger.

Translate

Copyright © Learn Linux Th3pro.xyz | Blogger Templates | Designed By Code TAOUSSI