Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've grown quite weary of shift-pgup to page up in gnome terminal, the command line, terminator, and guake, etc.

Any way to easily make these apps use the straight page-up and page-down keys for paging around?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

I am afraid this is not possible, asi no PgUp/PgDown will be sent to command-line applications, which will render some of them unusable. This is good ol' days Unix feature

If you want more user-friendly scrolling, I suggest using less command, it's used this way:

command-with-lot-of-output | less

This will start less command with output of your original command. (More about piping output to other programs can be found here: http://www.dsj.net/compedge/shellbasics1.html)

Less can be navigated using arrows or PgUp/PgDown. For your convenience, it also provides searching and more (see man less for more). You can quit less by just hitting q key

share|improve this answer
    
I researched the heck out of this and while it seems there at 100+ keystrokes that you can map in the command console, page-up and page-down aren't two of them! –  HDave Sep 13 '12 at 22:36
    
less is not suitable for just scrolling up/down in the contents of your terminal, and invoking it is hardly more convenient than pressing shift. Not Jakub's fault at all, but it's sad there isn't an answer to this question. –  Jonathan Hartley Jan 30 at 12:13

You can use the more command like this:

command-with-lots-of-output  |  more

this will start your command original output with more.

more can be navigated with 'space'. Just press the space and see the output of the command as pages.

share|improve this answer

Your Answer

 
discard

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.