How do you scroll up/down on the console of a Linux VM

LinuxTerminalRhel

Linux Problem Overview


I recognize that Up/Down will give you the command history. But, how do you look at past output by scrolling up and down?

I have used Shift+Page Up/Page Down, Alt+Shift+Up/Down and Page Up/Page Down but none of these seem to work.

It is a Redhat Linux box.

Linux Solutions


Solution 1 - Linux

SHIFT+Page Up and SHIFT+Page Down. If it doesn't work try this and then it should:

Go the terminal program, and make sure
Edit/Profile Preferences/Scrolling/Scrollback/Unlimited
is checked.

The exact location of this option might be somewhere different though, I see that you are using Redhat.

Solution 2 - Linux

Shift+Fn+ UP or DOWN on a Macbook will allow you to scroll.

Solution 3 - Linux

Alternative: you can use the less command.

Type in console:

"your_command" | less   

This will allow you to scroll with the up and down arrow keys.

Basically your output has been piped with the less command.

Solution 4 - Linux

ALTERNATIVE FOR LINE-BY-LINE SCROLLING

Ctrl + Shift + Up Arrow or Down Arrow

Unlike Shift + Page Up or Page Down, which scrolls the entire page, this will help with a smoother line-by-line scrolling, which is exactly what I was looking for.

Solution 5 - Linux

SHIFT + Page Up and SHIFT + Page Down are the correct keys to operate on the linux (virtual) console, but vmware console doesn't have those terminal settings. The virtual console has fixed scroll back size, it sounds like it's limited to video memory size according to this Linux virtual console Scrolling behavior documentation.

Solution 6 - Linux

Another alternative, that might be already installed on your system is to use GNU screen :

# This starts screen which adds basic window management in terminals
screen

# This starts the copy mode you can use to scroll
<CTRL-A> [

# Now use the arrows to scroll

# To exit copy mode, do
<ESC>

See man screen for much more useful options (multiple windows, ...)...

Solution 7 - Linux

Shift Pageup/End works for me.

Solution 8 - Linux

It seems as though this is not easily possible: The Arch Linux Wiki lists no way to do this on the console (while easily possible on the virtual terminal).

You could use tmux scrolling:

> Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode. > > Alternatively you can press Ctrl-b PgUp to go directly into copy mode and scroll one page up (which is what it sounds like you will want most of the time)

Solution 9 - Linux

VM Ubuntu on a Mac...fn + shift + up/down arrows

Solution 10 - Linux

I ran into the same problem with VMWare workstation with Ubuntu guest, turns out VmWare doesn't support scrolling back up from the server view. What I did was to install x GUI, then run xterm from there. For some reason it runs the same, but lets you scroll the normal ways. Hope this helps future readers in VmWare virtual boxes.

Solution 11 - Linux

Fn + Up/Down can scroll Terminal in Mac OS X 10.11

Solution 12 - Linux

In some VPS hostings (like linode) you have to click Ctrl+A and then ESC. Exit with double ESC too.

Solution 13 - Linux

Press the Shift key when scrolling the mouse up/down works for me when loggin in Ubuntu using Terminal ssh in Yosemite.

Solution 14 - Linux

For some commands, such as mtr + (plus) and - (minus) work to scroll up and down.

Solution 15 - Linux

PERSISTENT, longterm solution

Add this line to your ~/.screenrc

termcapinfo xterm* ti@:te@

> Now you can create a screen, and scroll it up/down with your mouse; > Like you normally do.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJane DohView Question on Stackoverflow
Solution 1 - LinuxmeyumerView Answer on Stackoverflow
Solution 2 - LinuxLaurenView Answer on Stackoverflow
Solution 3 - LinuxigauravsehrawatView Answer on Stackoverflow
Solution 4 - LinuxVicky SinghView Answer on Stackoverflow
Solution 5 - LinuxBenPenView Answer on Stackoverflow
Solution 6 - LinuxJoel.OView Answer on Stackoverflow
Solution 7 - LinuxRjjView Answer on Stackoverflow
Solution 8 - Linuxserv-incView Answer on Stackoverflow
Solution 9 - Linuxduderweb2View Answer on Stackoverflow
Solution 10 - LinuxkanaView Answer on Stackoverflow
Solution 11 - Linuxlikid1412View Answer on Stackoverflow
Solution 12 - LinuxT.ToduaView Answer on Stackoverflow
Solution 13 - LinuxohhoView Answer on Stackoverflow
Solution 14 - LinuxmcbluefireView Answer on Stackoverflow
Solution 15 - LinuxSlakeView Answer on Stackoverflow