LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-01-2009, 07:26 PM   #1
dissident85
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Rep: Reputation: 16
Cant remember a command?


Hi all, I need help with a command, well I can’t remember what it is. My situation is I need to test the new midband connection I have had installed. Before I move all our servers to the new connection I want to ensure that it is reliable. Now what I am doing is having a spare pc I have ping the gateway every second and piping the output to a log file. So that after a week I can check to ensure that it has sufficient uptime.

Ok so the command I can’t remember is one that allows me to view the last “x” amount of entries or lines in my log file. I have used this before I just can’t remember what it was. Now I know it used “tail” at the end to specify only show then end of the file. It was a bit like “cat” but it constantly refreshed it self.

Can anyone help me out here.

Thanks.

Last edited by dissident85; 03-01-2009 at 07:40 PM.
 
Old 03-01-2009, 07:35 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
try

Code:
tail -nf /pathway/to/filename
where n is number of lines you want
f means follow

Last edited by aus9; 03-01-2009 at 07:38 PM.
 
Old 03-01-2009, 08:22 PM   #3
dissident85
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by aus9 View Post
try

Code:
tail -nf /pathway/to/filename
where n is number of lines you want
f means follow
Cheers, exactly what i was looking for
i was sure there was more to it. but guess i was wrong.
 
Old 03-01-2009, 11:58 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Another sometimes-handy command is apropos, which will help you "find the command you're looking for."
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have a laugh, can't remember a basic command powadha Debian 2 09-20-2006 01:11 PM
Anybody Remember These? peter_89 General 4 04-12-2006 01:31 PM
...Can't Remember Command wwnexc Linux - Software 1 01-18-2006 09:40 PM
I can't quite remember... oldstinkyfish Linux - Software 4 06-12-2005 03:42 PM
@#$@# I can't remember odious1 Linux - General 1 10-29-2003 10:27 AM


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