LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 02-22-2013, 08:03 AM   #1
Smittey
LQ Newbie
 
Registered: Feb 2013
Location: Reading, England
Posts: 2

Rep: Reputation: Disabled
Live updates of file from terminal


Hey,

Long time reader of this forum, first time poster!

Is there a way that you can view a live update of files from the terminal?

To explain a little bit better.. know that you can view updates of a log file (for example) live by typing 'trail -f file.log'. Not that you would remove lines from log file, but i have a file that I would like to monitor live as lines are added and removed without going out of the file and back into it on the terminal.

Many thanks

Smittey
 
Old 02-22-2013, 08:13 AM   #2
Smittey
LQ Newbie
 
Registered: Feb 2013
Location: Reading, England
Posts: 2

Original Poster
Rep: Reputation: Disabled
Never mind, feel rather silly now. Found the solution (if any future readers purposely stumble across this)

watch tail -n20 your.log
 
  


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
Live USB will not retain updates or changes mdlinuxwolf Mandriva 1 02-01-2012 12:13 PM
live updates greg trinder Linux - Newbie 3 03-18-2010 02:26 PM
Live/real-time text-file updates in terminal SentralOrigin Linux - Software 2 01-13-2010 07:35 PM
Live Updates. patsyking Linux - Newbie 5 01-06-2009 09:22 AM
Program to get live updates corbis_demon General 2 03-07-2006 04:55 PM


All times are GMT -5. The time now is 02:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration