6

i am using Windows Powershell, and just wondered if there is a way to scroll through the screen buffer (like for example in UNIX bash with SHIFT + PgUp / SHIFT + PgDn). I know the there is a "more" command for paging through the screen buffer, but some keyboard shortcuts would be much more comfortable.

Is there any way to scroll the through the output without using the mouse?

  • I'm voting to close this question as off-topic because it belongs on Super User but is now too old to migrate. – kasperd Jan 6 '18 at 16:20
6

The scrollback is provided by Windows console itself, not by the shell inside (just like xterm and similar apps in Unix). And to activate its "scroll" feature, use Alt+Space, E, L as John Rennie described. (You could try the Scroll Lock key, but I can't test it myself here.)

  • Even for those of us familiar with the separation of such concerns in Unix, it's pretty hard to guess whether Windows will split things up the same way or not, so without already knowing the answer you wouldn't really know if it'd end up being PowerShell or just the Windows console in general. – SamB Feb 17 at 21:12
3

In Windows 10 Powershell use Ctrl+PgUp/PgDn to scroll by line.

In Windows 10 cmd use Ctrl+/ to scroll by line.

  • And it looks like plain PgUp/PgDn work to scroll by screenful in PowerShell, too! – SamB Feb 17 at 21:22
2

Press F7. Not the same as page up and page down but still very useful.

JR

Re Alexander's comment: oops, sorry I misunderstood your question. Irritatingly there isn't a simply keystroke to page up or down through the screen buffer. However if you use the comination alt-space, E L (i.e. select Edit/Scroll from the system menu) you'll find the arrows and page up/down scroll through the screen buffer. Press escape to exit the "scroll mode".

Maybe there is a hotkey to enter scroll mode, but I've been able to find it.

  • I know the F7 key. But please note that i don't want to navigate through the command history. I just want to seen the output of the commands executed last (if it doesn't fit on a single screen). – Alexander Jul 8 '09 at 7:55
  • See my edit: it's a bit long to squeeze into a comment – John Rennie Jul 8 '09 at 8:47
1

Just hold ctrl and push the up or down arrow. That works for me in Windows 10.

0

Alt+Space, E, L worked for me (and Scroll Lock did not).

Just wanted to add that after activating, the item in the menu becomes gray and can not be changed anymore, so you may wonder how to deactivate it again, which is pretty easy: press Esc or Ctrl+C.

Thought that this may save a little time for someone like myself

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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