See all output from commands performed inside screen
9,269
Solution 1
You can try:
Ctr-a [
and move up and down with the arrow keys,esc
for exit.<commamd> | less
if you are in a regular bash terminal
Solution 2
Ctrl-A ? To get help.
CTRL-A ESC PGUP
Whether uppercase A or lowercase a depends on your system.
Author by
user1032531
Updated on September 18, 2022Comments
-
user1032531 over 1 year
I am using screen (http://www.gnu.org/software/screen/manual/screen.html) to access my minecraft console. I created a server in
/etc/init.d
, and have minecraft running in the background.Then, to access the minecraft console, I just type #
screen -r
in bash.I can now do commands in the screen shell. The problem is if I do some command which exports a bunch of text, it exceeds the size of the screen and pushes the begging output off the page. And I cannot seem to scroll up and see it.
How can I scroll back and view all the output? How can I pause the output (maybe something like
more
orless
)?-
MariusMatutiae over 10 yearsAlt+PageUp and Alt+PageDown
-
-
user1032531 over 10 yearsThanks Agomezl. Not a regular bash terminal, but screen. Ctr-a seems to be much used with screen, so I expect you are pointing me in the right direction. When trying control-a, I can do things like "d" to detach the screen, but the up and down arrow keys have no effect.
-
Agomezl over 10 yearsis
ctr-a + [
(note the open bracket) to enter in copy/scrollback mode, that should allow you move up and down with the arrow keys, and as I said esc for exit to regular mode. -
user1032531 over 10 yearsright on on the [. How should I have known that if not told by you? I did look at the screen documentation, but didn't see it. Thanks!