LinuxQuestions.org
Visit Jeremy's Blog.
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 08-12-2012, 05:52 PM   #1
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
Skipping to End of log files using SSH


I'm sitting here holding the down button, I'm trying to get to the end of it but it's never coming.

How do I get to the end of a log file without seeing all the stiff in it by pressing page down?

Any quick way to get to the end of the file using SSH?
 
Old 08-12-2012, 06:03 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Depends on what you mean exactly eg if you were in the vi/vim editor, then <shift>-g would do it.
Which tool are you using? NB: ssh is just a remote terminal/shell tool, so that's not what I'm asking.
 
Old 08-12-2012, 06:06 PM   #3
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
Hi Chris, I'm using Putty SSH and VI. This is what I'm using to read the file. I hope that's what your asking for.
 
Old 08-12-2012, 06:10 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
SHIFT-g should work in 'less' too but if your only intent is watching lines scroll by then 'tail -f /path/to/log' would be the easiest.
 
Old 08-12-2012, 06:24 PM   #5
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks guys this is perfect it helps so much.
 
  


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
[SOLVED] How to check log files for ssh connection attempts Dave_P Linux - Security 18 10-06-2011 05:09 PM
ssh...log files that store the login attempts Bgrad Linux - Networking 4 03-29-2010 10:40 AM
snmpd log error parsing, skipping ben435 Red Hat 1 07-23-2009 02:14 PM
windows media player skipping and distorting songs near end kruegs25 Linux - Newbie 4 10-11-2008 10:39 PM
log files for ssh/ftp? falconxlc Linux - General 2 12-12-2002 12:30 PM

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

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration