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