Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say we do:

tail -f  /var/log/apache2/error.log

Then we see what we want to see, and then, we want to quit, so that we can navigate to other directories and so on... So, the question is:

How can we quit tail ?

I've tried to type: 'q', and 'exit', and 'quit', and 'kill', no luck.

share|improve this question
up vote 15 down vote accepted

The answer to your query is Ctrl-C

share|improve this answer
:) I was used to Control-B Thanks. :) – MEM Apr 24 '11 at 16:20
In general pressing Ctrl-C sends the 'interrupt' signal, aka SIGINT, to whatever is running. It tells the application that that the user wants to interrupt whatever it is currently doing. Many applications will exit when the get that signal, as tail does, others may stop doing something but continue running. – bdsl Aug 25 '15 at 10:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.