0

I use Putty to connect to my VPS and run screen -r to restore the Screen session.

Then I run a command in the Screen session. The command outputs a lot of content. When I scroll back to try to see the beginning of the content, I only see the content on the putty window before the screen -r command.

In other words, I can only see the last screen of the content that is output by the command running in the Screen session. Other part of the output is lost.

I use Ctrl a:scrollback 2000, but it doesn't seem to work.

How can I see the whole output of the command running in a Screen session?

1

You have to access the scrollback buffer of Screen. By default, this is done by pressing Ctrl + A, then [ (or Esc).

Now you can use Up/Down arrow keys or PageUp/PageDown to scroll.

Press Esc to exit scrollback mode.

The reason is that the scrollback buffer of Putty (terminal emulator) and Screen (terminal multiplexer) are two different things.

Think of it as Screen adds an additional scrollback buffer inside your terminal emulator.

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.