| Main index | Section 1 | 日本語 | Deutsch | Options |
The display begins at a byte, line or 512-byte block location in the input. Numbers having a leading plus (‘+’) sign are relative to the beginning of the input, for example, "-c +2" starts the display at the second byte of the input. Numbers having a leading minus (‘-’) sign or no explicit sign are relative to the end of the input, for example, "-n 2" displays the last two lines of the input. The default starting location is "-n 10", or the last 10 lines of the input.
The options are as follows:
| | |
| The location is number 512-byte blocks. | |
| | |
| The location is number bytes. | |
| | |
|
The
| |
| | |
|
The
If the file being followed does not (yet) exist or if it is removed, tail will keep looking and will display the file from the beginning if and when it is created.
The
| |
| | |
| The location is number lines. | |
| | |
| Suppresses printing of headers when multiple files are being examined. | |
| | |
|
The
| |
| | |
| Prepend each file with a header. | |
If more than a single file is specified, or if the
All number arguments may also be specified with size suffixes supported by expand_number(3).
$ tail -n 500 foo
Keep /var/log/messages open, displaying to the standard output anything appended to the file:
$ tail -F /var/log/messages
Read /var/log/messages from the beginning and then follow the file as usual:
$ tail -F -n +1 /var/log/messages
The historic command line syntax of
tail
is supported by this implementation.
The only difference between this implementation and historic versions
of
tail,
once the command line syntax translation has been done, is that the
| TAIL (1) | November 28, 2023 |
| Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The most important thing in the programming language is the name. A language will not succeed without a good name. I have recently invented a very good name and now I am looking for a suitable language. | ” |
| — Donald Knuth | ||