Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-01-2009, 06:26 PM   #1
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.


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

Rep: Reputation: Disabled

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

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

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

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, 10:58 PM   #4
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,724

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


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 12:11 PM
Anybody Remember These? peter_89 General 4 04-12-2006 12:31 PM
...Can't Remember Command wwnexc Linux - Software 1 01-18-2006 08:40 PM
I can't quite remember... oldstinkyfish Linux - Software 4 06-12-2005 02:42 PM
@#$@# I can't remember odious1 Linux - General 1 10-29-2003 09:27 AM

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration