Is there a keyboard way to scroll the terminal by line the same way we scroll with mouse wheel?

Shift+PgUp/PgDown give only by-page scrolling. I would like to scroll slowly as with mouse wheel.

My search on Google was not fruitful.


From your comments, I see that it is not a general manipulation to all terminals.  I'm asking about Fedora 22 terminal, opened by Ctrl+Alt+F2 or "System" → "Terminal".

Follow-up with @Stephane: Would that be "virtual console on Fedora" or "any of the many X11 terminal emulators" in this case? What is the difference?

Pardon me for the confusion; I am new to Linux and still learning.

  • 3
    For xterm, it's configurable. Probably not generally available for other terminals. – Thomas Dickey Dec 15 '15 at 11:02
  • 6
    Using what terminal? You can do this in tools like screen or tmux for example. I'm sure you can configure some terminals to do so as well. Please edit and tell us what you work with. – terdon Dec 15 '15 at 11:55
  • See also ^E/^Y in vi/less/screen – Stéphane Chazelas Dec 15 '15 at 12:52
  • Do you mean the virtual console on Fedora or any of the many X11 terminal emulators available for the several desktop environments available there? – Stéphane Chazelas Dec 16 '15 at 10:12
  • On the console (what you reach with Ctrl+Alt+F2), no. In a GUI terminal, maybe: it depends which terminal — there are many. Which one you get depends on the desktop environment and its configuration, not on the distribution. You can tell by running ps $PPID in the terminal. – Gilles Dec 16 '15 at 10:43

Short answer: try CTRL+SHIFT+Up/Down .

Longer answer: As other mentioned, this question is not a simply as it seems, because there are different programs that 'wrap' what you see as the terminal, and each might have its own keyboard shortcuts.

CTRL+SHIFT+Up/Down will work in a GUI terminal called "gnome terminal", and if you're using the default Fedora 22 installation, and select "System Terminal" - you are likely using it.

If you are using a text mode virtual terminal (the one that appears when pressing CTRL+ALT+F2), then these keys will not likely work.

For more advance usage, you might want to re-think why you need to 'scroll up'. If it is because a program you are using outputs a long text and you need to "look back", consider learning how to use more or less programs which are better at examining long output. If it is because you want to see previous commands you've typed, consider using history.


The shortcut is Shift+Up and Shift+Down for the majority of terminals.

If they don't work, Ctrl+Shift+Up and Ctrl+Shift+Down should instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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