• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

tail

tail

tail Displays the last part of a file.
tail [-f | -F | -r] [-b <number> | -c <number> | -n <number>] <file>

tail [-f | -F | -r] [-b <number> | -c <number> | -n <number>]

-f Waits for and displays additional data that <file> receives, rather than stopping at the end of the file.
-F Similar to -f, except that every five seconds, tail checks whether <file> has been shortened or moved. If so, tail closes the current file, opens the filename given, displays its entire contents, and waits for more data. This option is especially useful for monitoring log files that undergo rotation.
-r Displays the file in reverse order, by line. The default is to display the entire file in reverse. This option also modifies the -b, -c, and -n options to specify the number of units to display, rather than the number of units to display from the beginning or end of the input.
-b <number> Specifies location in number of 512-byte blocks.
-c <number> Specifies location in number of bytes.
-n <number> Specifies location in number of lines.
If <number> begins with +, it refers to the number of units from the beginning of the input. If <number> begins with -, it refers to the number of units from the end of the input.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint