How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?
This depends on your terminal emulator, not the shell you are using. I personally use GNU Screen. From the description:
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
You can use
C-a [ to enter scrollback mode. From here, you can scroll with the keyboard and even copy and paste. The mode can be exited from by using the
In most terminals that I known you can use Shift+PageUp and Shift+DownDown for scrolling. Note that some terminals don't support scrolling, or use a very limited history buffer. In the latter case, you may want to increase the limit, if it is configurable.
As an alternative, use a pager; for example,
Its also depend on your keyboard PageUp/Down and arrow keys layout. Here is my keyboard layout and I am using Ubuntu.
Answered by @Guzman is working for me.
Page-up: shift+fn+UpArrow Page-down: shift+fn+DownArrow Line-up: shift+control+UpArrow Line-down: shift+control+DownArrow Home: shift+fn+LeftArrow End: shift+fn+RightArrow