Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tail -f command.

Status
Not open for further replies.

teky

Programmer
Mar 24, 2000
55
US
I looked for some help on tail command using man.
I am using it to get my log record.
Can anybody explain what exactly tail -f does???


 
Well it appears to continue looking at the file your tailing. So it reads the last 10 lines of the file then sleeps for a second and then does it again. If something has been appended to the file since it's last run it will print those lines after the last ten lines of the previous run. I guess it is usefull for monitoring a file that is being written to by a program or other process. At least that is what the man page says.

Good luck,

Troy
 
When you use thios command it tells the program to continue to add lines as they are added to the file. I use this to moniter the system log.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top