LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-03-2004, 05:16 AM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Question Howto end the "tail" command???


I have just started with Linux, and now I am a Newbie. Nice!

In a Bash shell I entered the command: "tail -f <filename>, to view some logfiles in realtime. But I cannot find how to end this command. Other commands usually are ended by entering a "q".
I could not find this in he available online documentation about the tail command.

Thank you in advance for the replies.

Kind regards,

Schmurff
 
Old 03-03-2004, 05:24 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
what do you mean other command are ended with "q"
 
Old 03-03-2004, 05:33 AM   #3
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Original Poster
Rep: Reputation: 15
I meant this...

If I use less, or top, I end them by entering a q. After Reappears the standard command prompt.
 
Old 03-03-2004, 05:41 AM   #4
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Schmurff, usually you would end "tail -f" interactively, by hitting ctrl+C. Yep, that's really how it's meant to be done.
 
Old 03-03-2004, 05:42 AM   #5
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
OK sorry

"ctrl" + "c"

will end any process or you could put it in the background by holding

"ctrl" + "z"

however if you put it in the background you will have to resume it by typing

jobs

then note down the job number of less and type

bg %4

where 4 is the job number to then kill it type

kill %4


-JAX

Last edited by jax8; 03-03-2004 at 05:45 AM.
 
Old 03-03-2004, 06:32 AM   #6
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Original Poster
Rep: Reputation: 15
Thumbs up Thnx everyone!

I have tested control + c and it worked perfectly.
However, it is funny how the manuals give you all the information about starting something, but how to end it sometimes...
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"stalled" problem in " scp" command gentleshark Linux - Networking 1 08-29-2005 01:41 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM
Error in Sendmail Tail : "apache set sender to <> using -f" cartfanatic39 Linux - Software 0 01-30-2004 11:04 AM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-22-2003 12:47 AM


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