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.

Stefan's user avatar

Stefan

28.5k4 gold badges55 silver badges85 bronze badges

asked Mar 6, 2013 at 18:23

Jane Doh's user avatar

Jane DohJane Doh

2,9033 gold badges17 silver badges17 bronze badges

6

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.

LostMyGlasses's user avatar

answered Mar 6, 2013 at 18:36

meyumer's user avatar

meyumermeyumer

5,0641 gold badge18 silver badges21 bronze badges

5

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

A.D.'s user avatar

A.D.

4,6143 gold badges41 silver badges51 bronze badges

answered Nov 16, 2013 at 14:52

Lauren's user avatar

LaurenLauren

1,5361 gold badge12 silver badges16 bronze badges

8

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.

Drew Gaynor's user avatar

Drew Gaynor

8,4725 gold badges41 silver badges53 bronze badges

answered Jan 10, 2014 at 6:18

igauravsehrawat's user avatar

igauravsehrawatigauravsehrawat

3,9344 gold badges37 silver badges47 bronze badges

3

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.

jacefarm's user avatar

jacefarm

7,3736 gold badges37 silver badges46 bronze badges

answered Nov 15, 2016 at 6:25

Vicky Singh's user avatar

Vicky SinghVicky Singh

4014 silver badges6 bronze badges

2

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.

answered Mar 8, 2013 at 14:04

BenPen's user avatar

BenPenBenPen

3925 silver badges15 bronze badges

2

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, ...)...

answered Dec 8, 2016 at 8:48

Joel.O's user avatar

Joel.OJoel.O

2,0584 gold badges19 silver badges26 bronze badges

Shift Pageup/End works for me.

answered Apr 1, 2019 at 9:56

Rjj's user avatar

RjjRjj

1411 silver badge3 bronze badges

2

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)

Community's user avatar

answered Feb 10, 2016 at 11:11

serv-inc's user avatar

serv-incserv-inc

38.1k9 gold badges189 silver badges206 bronze badges

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

answered Oct 4, 2017 at 3:21

duderweb2's user avatar

duderweb2duderweb2

1011 silver badge3 bronze badges

1

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.

answered Jul 18, 2016 at 7:42

piie's user avatar

piiepiie

6451 gold badge7 silver badges17 bronze badges

1

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

answered Jan 8, 2019 at 21:20

T.Todua's user avatar

T.ToduaT.Todua

56.3k22 gold badges255 silver badges259 bronze badges

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

barbsan's user avatar

barbsan

3,45811 gold badges23 silver badges29 bronze badges

answered Jan 6, 2016 at 12:00

likid1412's user avatar

likid1412likid1412

1,12910 silver badges15 bronze badges

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

answered Nov 9, 2015 at 4:56

ohho's user avatar

ohhoohho

51.9k76 gold badges261 silver badges387 bronze badges

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.

answered Apr 1, 2018 at 9:14

Slake's user avatar

SlakeSlake

2,1503 gold badges25 silver badges32 bronze badges

2

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

answered Mar 3, 2014 at 17:03

mcbluefire's user avatar