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

Using a default terminal and bash, there is no functionality to search the standard output of commands.

One can gain such functionality using other tools, like emacs shell or screen, but I am wondering why such a useful feature is missing, I do remember a simple C-F used to work in terminals.

Is there a way to make the Gnome terminal app support output search? or is there a better terminal app that support searching output natively?

share|improve this question

migrated from Oct 3 '10 at 0:49

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

Does piping the command into less not give you what you desire? You can search text in less and many other pagers. Also, shouldn't this be on super user? – TomMD Oct 2 '10 at 23:54
Yes, less is good for one command output, but I often do multiple commands and come back later with the need to search all output – Samer Abukhait Oct 2 '10 at 23:58
up vote 3 down vote accepted

You could try script(1). On login just call script and you can then search through the typescript file it generates. It's not a single keystroke like emacs shell and it is buffered, but it might be better than nothing.

share|improve this answer
Can you search script while script is running? I tried and couldn't... – user1527227 Apr 25 '14 at 19:45

Try Ctr + Shift + f. This works on Ubuntu terminal and Terminator

share|improve this answer
Same hotkey in gnome-terminal. – mmv-ru Apr 9 at 12:24

In screen you can enter copy mode and do searches on output. You can also do logging of output to a file and search it any way you normally would (grep, less, etc.).

share|improve this answer

Don't know gnome-terminal but urxvt does that by typing Alt + s. It should be in your repositories, lookup the package rxvt-unicode.

share|improve this answer

I believe that this can be done with zsh, but I don't use zsh so I don't know the exact configuration that would be required.

share|improve this answer

Using xterm, you can log everything the terminal displays to a file. Then you can open that file in an editor or less.

share|improve this answer

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.