TAILF(1) User Commands TAILF(1)NAME
tailf - follow the growth of a log file
SYNOPSIS
tailf [OPTION] file
DESCRIPTION
tailf will print out the last 10 lines of a file and then wait for the file to grow. It is similar to tail -f but does not access the file
when it is not growing. This has the side effect of not updating the access time for the file, so a filesystem flush does not occur peri-
odically when no log activity is happening.
tailf is extremely useful for monitoring log files on a laptop when logging is infrequent and the user desires that the hard disk spin down
to conserve battery life.
Mandatory arguments to long options are mandatory for short options too.
-n, --lines=N, -N
output the last N lines, instead of the last 10.
-V, --version
Output version information and exit.
-h, --help
Display help and exit.
AUTHOR
This program was originally written by Rik Faith (faith@acm.org) and may be freely distributed under the terms of the X11/MIT License.
There is ABSOLUTELY NO WARRANTY for this program.
The latest inotify based implementation was written by Karel Zak (kzak@redhat.com).
SEE ALSO tail(1), less(1)AVAILABILITY
The tailf command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux February 2003 TAILF(1)
Check Out this Related Man Page
SWITCH_ROOT(8) System Administration SWITCH_ROOT(8)NAME
switch_root - switch to another filesystem as the root of the mount tree
SYNOPSIS
switch_root [-hV]
switch_root newroot init [arg...]
DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process.
WARNING: switch_root removes recursively all files and directories on the current root filesystem.
OPTIONS -h, --help
show help and exit
-V, --version
show version number and exit
RETURN VALUE
switch_root returns 0 on success and 1 on failure.
NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet
this requirement then you can first use a bind-mounting trick to turn any directory into a mount point:
mount --bind $DIR $DIR
SEE ALSO mount(8), chroot(2), init(8), mkinitrd(8)AUTHORS
Peter Jones <pjones@redhat.com>
Jeremy Katz <katzj@redhat.com>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2009 SWITCH_ROOT(8)
hi guys!
just want to ask if you could help me with the sript i'm working on. i need to automatically generate a summarized report everyday for all transactions the day before and ftp it to another machine. my only problem is that i need to name the file as the date yesterday. for example if i... (12 Replies)
Hello,
I am going to install linux on my new laptop. It is currently using windows, is it possible to remove windows? if it is, how do I do it? :confused: (9 Replies)
I am pretty new to Unix/linux and have been itching to use a linux os for a while. And after some research i found that Mandrake was the best for someone like me. I need to know what files i need to download to make a boot disc(s) to make my laptop run only linux. The laptop runs around 200-500mhz... (10 Replies)
Hello. I would be very pleased if sb. help me to solve my problem. I've got a file with many non blank lines and I want to merge all lines into one not destroy the informations on them. I've tryed it with split and paste, tr, sed , but everything I've done has been wrong. I know about crazy... (8 Replies)
Sorry if this is totally the wrong place to post this but I have a question or something rather thats bugging me. I got a new Dell Inspiron laptop the other day and I was expecting it to have 80G on it, well atleast 70 or so after installation of OS and such but after looking carefully yesterday, I... (8 Replies)
Hello all,
Forgive me if this question was asked before, I'm unable to find an answer to it on this forum upon searching "windows unix".
I have Windows XP at home, and I want to practice Unix, I want to re-learn all Unix commands, Shell script programming and the Vi Editor.
I'm looking... (11 Replies)
I have an event log which is a circular file. I would like to be able to see real-time updates of that event log. Kind of the equivalent of a 'tail -f'. But obviously 'tail -f' won't work if my circular file has already cycled over. Any ideas as to how I can do this? Let me know if I am clear.... (10 Replies)
Hi,
Could some please help me in configuring wireles internet on redhat linux installed on my laptop.
When I booted using windows, I saw the following, which I think is the name of my laptop's wireless card:
Intel(R) PRO/Wireless 3945ABG Network Connection
I have run the following steps... (9 Replies)
I have a log file that is about 1.2 million lines long and about 300MB.
we need a way to clean up this file and only keep the last few thousand lines.
if i use tail command we run our of memory as the file is too big.
I do have a key word to match on.
example, we want to keep every line... (8 Replies)
Hi
I am having hard time getting this right and need some help. I Have several log files, and everyone contains the following 3 lines at the end:
4 ETW000 Disconnected from database.
4 ETW000 End of Transport (0000).
4 ETW000 date&time: 13.01.2011 - 08:03:28
I need to capture the value... (7 Replies)
Hey Folks,
What are the ways we can provide security to kernels.
How can I make my Kernel Unique and not allow anyone to replace my Unique kernel with a standard one.
How can i implement measures to avoid any user to replace or modify GRUB and Kernel...?
Need help on this
Thank you (8 Replies)
Hi I'm a newbie in unix scripting and I'm trying to do a function that do the next:
Run this command: opcdeploy -cmd "utility -xs" -node node.com and store the result in a file.
Get the last ten lines from the stored file and do a search for the number 100, store that search in a variable.
If ... (11 Replies)