LinuxQuestions.org
Review your favorite Linux distribution.
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, 02: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, 02:18 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,419

Rep: Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937
tail
Check man pages for options.
 
Old 04-21-2004, 02: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, 04: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,506

Rep: Reputation: 100Reputation: 100
Hi

More specifically: tail -f filename

Ctrl - C to exit

Cheers
 
Old 04-21-2004, 04: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 04:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:00 PM
How to watch file system changes? Behdad Programming 1 04-20-2004 03:35 AM
Delete contents of the file, but not file? mikeshn Linux - General 9 05-28-2003 07:47 AM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 11:09 AM
Where can I get an updated db.cache file? _TK_ Linux - Networking 6 02-23-2001 12:37 AM

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

All times are GMT -5. The time now is 04:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration