Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I use "tail -f" to monitor log files. After interrupted by ctrl-c, the shell doesn't display my input chars from keyboard any more. Something like

terminal> tail -f /log/a.log
then ctrl-c

No matter what I input, it doesn't display it. But after hitting "enter", it will get run my input command if no typo (unseen).

Seem it's a shell setting problem.

share|improve this question

migrated from Feb 9 '11 at 1:09

This question came from our site for professional and enthusiast programmers.

The reset command will sort this out for you. – ar. Feb 8 '11 at 5:21
Is Ctrl + C taking tail to background? try the command fg to get it back if that is the case – gsk Feb 8 '11 at 5:26
yes, reset works. thanks ar. – Anonymous Feb 8 '11 at 5:31

with gnu tail, the -f does not play any sort of cursor games (i.e. ncurses library routine) so you shouldn't ever have that problem.

1) try interrupting with ctrl-z and seei if the problem still shows up

2) try running with the -q flag as well

share|improve this answer

Your Answer


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