.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.012. .TH TAIL "1" "August 1999" "GNU textutils 2.0" FSF .SH NAME tail \- output the last part of files .SH SYNOPSIS .B tail [\fIOPTION\fR]... [\fIFILE\fR]... .SH DESCRIPTION .PP .\" Add any additional description here .PP Print the last 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input. .TP \fB\-\-retry\fR keep trying to open a file even if it is .IP inaccessible when tail starts or if it becomes inaccessible later \fB\-\-\fR useful only with \fB\-f\fR .TP \fB\-c\fR, \fB\-\-bytes\fR=\fIN\fR output the last N bytes .IP \fB\-f\fR, \fB\-\-follow[=\fR{name|descriptor}] output appended data as the file grows; .IP \fB\-f\fR, \fB\-\-follow\fR, and \fB\-\-follow\fR=\fIdescriptor\fR are equivalent .TP \fB\-n\fR, \fB\-\-lines\fR=\fIN\fR output the last N lines, instead of the last 10 .IP \fB\-\-max\-unchanged\-stats\fR=\fIN\fR see the texinfo documentation .IP (the default is 5) .IP \fB\-\-max\-consecutive\-size\-changes\fR=\fIN\fR see the texinfo documentation .IP (the default is 200) .TP \fB\-\-pid\fR=\fIPID\fR with \fB\-f\fR, terminate after process ID, PID dies .TP \fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR never output headers giving file names .TP \fB\-s\fR, \fB\-\-sleep\-interval\fR=\fIS\fR with \fB\-f\fR, sleep S seconds between iterations .TP \fB\-v\fR, \fB\-\-verbose\fR always output headers giving file names .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .PP If the first character of N (the number of bytes or lines) is a `+', print beginning with the Nth item from the start of each file, otherwise, print the last N items in the file. N may have a multiplier suffix: b for 512, k for 1024, m for 1048576 (1 Meg). A first OPTION of \fB\-VALUE\fR or +VALUE is treated like \fB\-n\fR VALUE or \fB\-n\fR +VALUE unless VALUE has one of the [bkm] suffix multipliers, in which case it is treated like \fB\-c\fR VALUE or \fB\-c\fR +VALUE. .PP With \fB\-\-follow\fR (-f), tail defaults to following the file descriptor, which means that even if a tail'ed file is renamed, tail will continue to track its end. This default behavior is not desirable when you really want to track the actual name of the file, not the file descriptor (e.g., log rotation). Use \fB\-\-follow\fR=\fIname\fR in that case. That causes tail to track the named file by reopening it periodically to see if it has been removed and recreated by some other program. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B tail is maintained as a Texinfo manual. If the .B info and .B tail programs are properly installed at your site, the command .IP .B info tail .PP should give you access to the complete manual. .SH COPYRIGHT Copyright \(co 1999 Free Software Foundation, Inc. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.