]> git.ipfire.org Git - thirdparty/util-linux.git/blob - text-utils/tailf.1
83de40b4dffaf234d9cd42e7178adb94a6036655
[thirdparty/util-linux.git] / text-utils / tailf.1
1 .\" tailf.1 -- man page for tailf
2 .\" Copyright 1996, 2003 Rickard E. Faith (faith@acm.org)
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .TH TAILF 1 "March 2015" "util-linux" "User Commands"
25 .SH NAME
26 tailf \- follow the growth of a log file
27 .SH SYNOPSIS
28 .B tailf
29 [option]
30 .I file
31 .SH DESCRIPTION
32 .B tailf is deprecated.
33 It may have unfixed bugs and will be removed from util-linux in March 2017.
34 Nowadays it's safe to use
35 .B tail -f
36 (from coreutils), in contrast to what the original documentation below says.
37 .PP
38 .B tailf
39 will print out the last 10 lines of the given \fIfile\fR and then wait
40 for this \fIfile\fR to grow. It is similar to
41 .B tail -f
42 but does not access the file when it is not growing. This has the side
43 effect of not updating the access time for the file, so a filesystem flush
44 does not occur periodically when no log activity is happening.
45 .PP
46 .B tailf
47 is extremely useful for monitoring log files on a laptop when logging is
48 infrequent and the user wishes the hard disk to spin down to conserve
49 battery life.
50 .TP
51 .BR \-n , " -\-lines=\fInumber\fR" , " \-\fInumber\fR"
52 Output the last
53 .I number
54 lines, instead of the last 10.
55 .TP
56 \fB\-V\fR, \fB\-\-version
57 Display version information and exit.
58 .TP
59 \fB\-h\fR, \fB\-\-help
60 Display help text and exit.
61
62 .SH AUTHOR
63 This program was originally written by Rik Faith (faith@acm.org) and may be freely
64 distributed under the terms of the X11/MIT License. There is ABSOLUTELY
65 NO WARRANTY for this program.
66
67 The latest inotify-based implementation was written by Karel Zak (kzak@redhat.com).
68 .SH "SEE ALSO"
69 .BR less (1),
70 .BR tail (1)
71 .SH AVAILABILITY
72 The tailf command is part of the util-linux package and is available from
73 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.