Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-29-2012
Registered User
 
Join Date: May 2012
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
to check the latest lines of log in vi editor itself..

Hi Folks,

If I open the logs in vi editor but as the logs get update after few seconds and I want to see the latest lines then whats the command to see the latest lines in vi editor itself , lets say I have open a log named abc.log in vi..!!

Code:
vi abc.log

Sponsored Links
    #2  
Old 05-29-2012
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
 
Join Date: Dec 2007
Location: Out running a Marathon.
Posts: 2,189
Thanks: 46
Thanked 126 Times in 118 Posts
When you open with vi, you will see what is in the file at that instant. What is displayed on your screen will not change as changes happen to the original file.

To see the end of a file, check out the

Code:
tail

command.
Sponsored Links
    #3  
Old 05-29-2012
admin_xor's Avatar
Registered User
 
Join Date: Jun 2011
Posts: 450
Thanks: 13
Thanked 77 Times in 74 Posts
To check the file as it grows:

Code:
tail -f /path/to/file

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to check binary files in VI editor? mail2sant Shell Programming and Scripting 2 01-14-2010 04:49 PM
Check latest time where theres the word 'processed' in logfile romanne UNIX for Advanced & Expert Users 1 10-08-2009 07:27 AM
To check if the latest version of given GDG base has data mavesum UNIX for Dummies Questions & Answers 1 12-16-2008 07:18 PM
To check if the latest version of given GDG base has data mavesum Shell Programming and Scripting 3 12-16-2008 08:36 AM
How to put the comments to 50 lines, using vi editor? artikulkarni UNIX for Dummies Questions & Answers 3 02-08-2008 03:57 AM



All times are GMT -4. The time now is 07:23 PM.