How to use search function in ubuntu terminal?

Question Description

I have written a program that outputs a lot of text to the terminal.

I am looking for certain words in the text to see if I have done it right, but simply reading the text is impossible.

Are there any capabilities or commands that can actually enable me to lookup a word in the terminal (like Ctrl + F)?

Ax1

It's Shift + Ctrl + F.

You might want to change the Scrollback value to Unlimited to not lose any lines:

  • Edit > Profile Preferences > Scrolling

Ax2

You could pipe the output to a file with > myfile.txt And then search the file with grep.

grep "word" myfile.txt

I usually prefer this approach as you don't need to worry about the terminal buffer size, and you can easily keep output from multiple runs of program.

results for ""

    No results matching ""