Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #154
Difficulty: Easy
Inspur K-UX is a Linux distribution certified as UNIX 03 compliant.
True or False?
Linux & Unix Commands - Search Man Pages

tailf(1) [linux man page]

TAILF(1)						     Linux Programmer's Manual							  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. 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/. 13 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)

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Date function question

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)
Discussion started by: crpalermo
12 Replies

2. Linux

Removing Windows

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)
Discussion started by: Kimm
9 Replies

3. UNIX for Dummies Questions & Answers

Merging lines into one

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)
Discussion started by: Foxgard
8 Replies

4. Programming

Fail tail algorithm

I am currently working on code that simulates a file tail algorithm since the only way to retrieve the required information is from within a file, and this information needs to be retrieved in as close to real time as possible when the event enters the file. I cannot use system("tail <options>")... (6 Replies)
Discussion started by: foureightyeast
6 Replies

5. UNIX for Dummies Questions & Answers

Looking for Unix Emulators on Windows XP

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)
Discussion started by: thoughts
11 Replies

6. Linux

Linux

Which flag for the tail command is often used to view log files? -a or -f or -l or -z?? (11 Replies)
Discussion started by: abril2006
11 Replies

7. Linux

log session

How could I log a seesion on unix machine...log all the commands applied on the server by a user (15 Replies)
Discussion started by: mm00123
15 Replies

8. Shell Programming and Scripting

monitoring a circular file

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)
Discussion started by: sdilucca
10 Replies

9. Red Hat

wireless internet on redhat linux ?

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)
Discussion started by: girish1428
9 Replies

10. Shell Programming and Scripting

Tail 86000 lines from 1.2 million line file?

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)
Discussion started by: robsonde
8 Replies

11. Shell Programming and Scripting

Get value between brackets

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)
Discussion started by: nimo
7 Replies

12. Cybersecurity

Linux kernel Security

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)
Discussion started by: Vabiosis
8 Replies

13. UNIX for Dummies Questions & Answers

Help with function

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)
Discussion started by: salaso
11 Replies

14. UNIX for Dummies Questions & Answers

How to check if my log file is growing properly?

Hi All, I want to check if one my log file is updating properly, how can I achieve it. The approach I am trying is to get the file size at two different interval and than comparing it eg : $ ls -ltr | tail -1 | awk '{print $5}' 20480 (7 Replies)
Discussion started by: mukulverma2408
7 Replies

15. Linux

Need suggestions or references to find a way to get free Linux on Windows

Hi all, I am sorry if this is a repetitive question and would be happy if I get directed to a source where I can find details about this. I have a laptop with windows 8, 8 GB RAM and 1 TB hard disk with most of the memory available for use. I am trying to find a good option to install Linux... (8 Replies)
Discussion started by: pat_pramod
8 Replies

Featured Tech Videos