Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux(Ubuntu) Terminal-how to view previous pages not visible anymore

Tags:

linux

terminal

When you scroll up, say to see a log, the first portion of it will not be visible since the terminal only supports a limited no. of lines. So if you want to scroll up and be able to see everything, at least a few pages up, how do you do it?

like image 231
Namratha Avatar asked Jul 08 '10 04:07

Namratha


People also ask

How do I go back to previous page in Ubuntu?

Use Shift + Page Up and Shift + Page Down .

How do I see previous screens in Linux?

Ctrl + A , followed by Esc also enters the copy/scrollback mode of screen .

How do I see further back in terminal?

Edit > Profile Preferences > Scrolling > Scrollback: Show activity on this post. Show activity on this post.

How do I search history in Ubuntu terminal?

Open a terminal application on your Linux or Unix and type history to list all commands. To search for a command in the history, press ctrl+r multiple times. For instance, you can hit the ctrl+r and type string to search.


2 Answers

Use Shift+Page Up and Shift+Page Down.

like image 187
Dr. Snoopy Avatar answered Oct 02 '22 21:10

Dr. Snoopy


Piping the output to a pager like the following is a better choice:

command | less   command | more 
like image 21
thegeek Avatar answered Oct 02 '22 20:10

thegeek