I have a program that outputs a lot of text to the terminal. With Ubuntu I was using Shift + Ctrl + F to search a word in the text but it is not working on lubuntu (lubuntu 18.04).

Is there an equivalent on lubuntu?

I am using LXTerminal (https://help.ubuntu.com/community/Lubuntu/Documentation/LXTerminal)

  • I think you should include some details of the terminal you're using. – Tomasz May 25 '18 at 15:32
  • 1
    Terminal scrollback can be limited, so using a utility like grep rather than the terminal find feature for searching through another program's output is often more robust (and flexible). – dsstorefile1 May 25 '18 at 15:48

Redirect the output to a file, and then use less to view this file (possibly from another terminal). less supports searching using regular expressions if you press /. It will also work like tail -f if you press F (you use Ctrl+C to get out of that mode), which allows you to see the output as it's being produced and written to the file.

If you don't need to store the full output of the command, you may instead pipe the output through grep:

myprogram | grep 'PATTERN'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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