Linux and Unix Tail Command

Tail command used to display the last 10 lines of a file in Linux or UNix systems.By default, it displays last 10 lines of the file. But, we can get last 100 or 200 lines of a file.

Usage: tail [OPTION]… [FILE]…

Options:
Mandatory arguments to long options are mandatory for short options too.

[table “1” not found /]

Examples:
Default tail example: This will give last 10 lines of the file.

tail test.txt

To list the 50 lines of a file.

tail test.txt -n 100

To output last 10 lines of the file and monitor for updates. IF we want to exit from the tail windows, press ctrl+C.

tail -f test.txt

To get full help for tail command.
Linux and Unix Tail Command

Related Posts

CheapSexCams
You can leave a response, or trackback from your own site.

Leave a Reply

Powered by k2schools