LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can i watch the file contents while being updated? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-watch-the-file-contents-while-being-updated-172942/)

7ux_spirit 04-21-2004 01:16 PM

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.

michaelk 04-21-2004 01:18 PM

tail
Check man pages for options.

7ux_spirit 04-21-2004 01:33 PM

cool:)

rylan76 04-21-2004 03:07 PM

Hi

More specifically: tail -f filename

Ctrl - C to exit

Cheers

kebabhead 04-21-2004 03:25 PM

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


All times are GMT -5. The time now is 07:40 PM.