Debian Codegraph @

upstream/opensuse-leap-16-1/man1/tail.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH TAIL "1" "June 2025" "GNU coreutils 9.6" "User Commands"
3 .SH NAME
4 tail \- output the last part of files
5 .SH SYNOPSIS
6 .B tail
7 [\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Print the last 10 lines of each FILE to standard output.
12 With more than one FILE, precede each with a header giving the file name.
13 .PP
14 With no FILE, or when FILE is \-, read standard input.
15 .PP
16 Mandatory arguments to long options are mandatory for short options too.
17 .TP
18 \fB\-c\fR, \fB\-\-bytes\fR=\fI\,[\/\fR+]NUM
19 output the last NUM bytes; or use \fB\-c\fR +NUM to
20 output starting with byte NUM of each file
21 .TP
22 \fB\-f\fR, \fB\-\-follow[=\fR{name|descriptor}]
23 output appended data as the file grows;
24 .IP
25 an absent option argument means 'descriptor'
26 .TP
27 \fB\-F\fR
28 same as \fB\-\-follow\fR=\fI\,name\/\fR \fB\-\-retry\fR
29 .TP
30 \fB\-n\fR, \fB\-\-lines\fR=\fI\,[\/\fR+]NUM
31 output the last NUM lines, instead of the last 10;
32 or use \fB\-n\fR +NUM to skip NUM\-1 lines at the start
33 .TP
34 \fB\-\-max\-unchanged\-stats\fR=\fI\,N\/\fR
35 with \fB\-\-follow\fR=\fI\,name\/\fR, reopen a FILE which has not
36 .IP
37 changed size after N (default 5) iterations
38 to see if it has been unlinked or renamed
39 (this is the usual case of rotated log files);
40 with inotify, this option is rarely useful
41 .TP
42 \fB\-\-pid\fR=\fI\,PID\/\fR
43 with \fB\-f\fR, terminate after process ID, PID dies;
44 can be repeated to watch multiple processes
45 .TP
46 \fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
47 never output headers giving file names
48 .TP
49 \fB\-\-retry\fR
50 keep trying to open a file if it is inaccessible
51 .TP
52 \fB\-s\fR, \fB\-\-sleep\-interval\fR=\fI\,N\/\fR
53 with \fB\-f\fR, sleep for approximately N seconds
54 (default 1.0) between iterations;
55 with inotify and \fB\-\-pid\fR=\fI\,P\/\fR, check process P at
56 least once every N seconds
57 .TP
58 \fB\-v\fR, \fB\-\-verbose\fR
59 always output headers giving file names
60 .TP
61 \fB\-z\fR, \fB\-\-zero\-terminated\fR
62 line delimiter is NUL, not newline
63 .TP
64 \fB\-\-help\fR
65 display this help and exit
66 .TP
67 \fB\-\-version\fR
68 output version information and exit
69 .PP
70 NUM may have a multiplier suffix:
71 b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
72 GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y, R, Q.
73 Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
74 .PP
75 With \fB\-\-follow\fR (\fB\-f\fR), tail defaults to following the file descriptor, which
76 means that even if a tail'ed file is renamed, tail will continue to track
77 its end. This default behavior is not desirable when you really want to
78 track the actual name of the file, not the file descriptor (e.g., log
79 rotation). Use \fB\-\-follow\fR=\fI\,name\/\fR in that case. That causes tail to track the
80 named file in a way that accommodates renaming, removal and creation.
81 .SH AUTHOR
82 Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
83 and Jim Meyering.
84 .SH "REPORTING BUGS"
85 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
86 .br
87 Report any translation bugs to <https://translationproject.org/team/>
88 .SH COPYRIGHT
89 Copyright \(co 2025 Free Software Foundation, Inc.
90 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
91 .br
92 This is free software: you are free to change and redistribute it.
93 There is NO WARRANTY, to the extent permitted by law.
94 .SH "SEE ALSO"
95 \fBhead\fP(1)
96 .PP
97 .br
98 Full documentation <https://www.gnu.org/software/coreutils/tail>
99 .br
100 or available locally via: info \(aq(coreutils) tail invocation\(aq