LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2004, 01:16 PM   #1
7ux_spirit
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 8.0
Posts: 21

Rep: Reputation: 15
Question Can i watch the file contents while being updated?


Is there any method/tool to have a watch on the contents of a file while it is being updated? (ya ofcourse watching the updated contents!)

I think i did heard about the existence of such a thing somewhere.
 
Old 04-21-2004, 01:18 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,813

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
tail
Check man pages for options.
 
Old 04-21-2004, 01:33 PM   #3
7ux_spirit
LQ Newbie
 
Registered: Apr 2004
Distribution: Redhat 8.0
Posts: 21

Original Poster
Rep: Reputation: 15
cool
 
Old 04-21-2004, 03:07 PM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Hi

More specifically: tail -f filename

Ctrl - C to exit

Cheers
 
Old 04-21-2004, 03:25 PM   #5
kebabhead
LQ Newbie
 
Registered: Apr 2004
Location: west coast USA
Distribution: redhat 9, fedora core 2, Gentoo
Posts: 20

Rep: Reputation: 0
Hi, A nice addition to the above answers is the command "watch" i.e watch -d ls -l will update the change in a file's size every few seconds, much better then hitting ls -l repeatedly
cheers

Last edited by kebabhead; 04-21-2004 at 03:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file:/tmp - mysterious contents. Rm, or not rm? linuxfond Linux - Newbie 5 06-12-2004 02:00 PM
How to watch file system changes? Behdad Programming 1 04-20-2004 02:35 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 06:47 AM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 10:09 AM
Where can I get an updated db.cache file? _TK_ Linux - Networking 6 02-22-2001 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration