To retrieve the full output of a command run in screen without scrolling, you have a few options:
screen's scrollback bufferscreen by pressing:
Ctrl + A, then [ (left square bracket).Page Up/Page Down to scroll./ to search forward, ? to search backward.Space to mark the start.Enter to copy the selected text to the clipboard.Esc or Ctrl + C.If you want to avoid scrolling entirely, redirect the command's output to a file when running it:
bashyour_command > output.txt 2>&1
stdout and stderr to output.txt.less, cat, or any text editor.tee to save and view outputIf you want to see the output in real-time and save it:
bashyour_command | tee output.txt
output.txt.screen's scrollback bufferIf you want to keep more output in memory for scrolling:
~/.screenrc:
textdefscrollback 10000
screen with:
bashscreen -h 10000
Which method do you prefer, or do you need help with a specific step?
Vibe can make mistakes. Check answers. Learn more