Search This Blog

Loading...

Tuesday, November 13, 2007

How to Scroll the Command Window

How many times have you been annoyed by the command output spanning over the length of the window? If the window is in the X-Window environment, then you could use the scroll bars to scroll back. What if this is your console window, and it does not have scroll bars?

Sure, if only you had remembered, you could have piped the command to the less command. For example,
ps -ef |less


It turns out that you can scroll the bash command window.

To scroll up, hit Shift-Up.

To scroll down, hit Shift-Down.

Simple? Yes. And Effective !!

StumbleUpon Toolbar

7 comments:

HyperHacker said...

Neat!

Anonymous said...

Thank you, i hate those long commands where the result flies across the screen and you can't see them, thanks!

Anonymous said...

It didn't work for me :|

Zenettii said...

try shift + page up/down instead

zechdc said...

I'm using a Mac which doesn't have the Page Up/Page Down keys. I know I could use BetterTouchTools or some other app to remap a key to act like Page Up/Page Down. Just wondering if there is another way. Thanks

calt said...

I tried it and it works.

However, it seems that it has a limit of the content that can be scrolled. Does it have?

Thanks,

choirul.rahmadan said...

thanks it works
press Q to quit