Installing Screen Debian based systems: apt-get install screen Redhat based systems including centos: yum install screen
Basic Usage Start screen with command screen Ctrl-a is a control key combination for all basic/advanced functions!
Basic usage key combinations Ctrl-a c open a new screen Ctrl-a A rename current screen
Basic usage key combinations looking and moving around.. Ctrl-a w shows all open screen names in window’s title bar
Basic usage key combinations looking and moving around.. Ctrl-a ” opens window with all screen names visible, with arrow keys you can change to any screen on the list
Basic usage key combinations looking and moving around.. Ctrl-a 2 change to screen number 2 Ctrl-a space change to next screen
Basic usage key combinations looking and moving around.. Ctrl-a [ activates scrollback in a Screen (default value 1000 lines). To exit scrollback hit ESC.
Advanced usage key combinations copy & paste Ctrl-a [ Also enters the copy mode. How to use steps: 1) Move around with arrow keys and find the starting place for copying 2) Hit Enter key in the place where you want to start copying. 3) Move around with arrow keys to paint the area you want to copy 4) Hit Enter key to stop copy.
Advanced usage key combinations copy & paste Ctrl-a ] This command allows you to paste copied content to for example text editor.
Advanced usage key combinations logging the output Ctrl-a H Begin/end logging of the current window to the file screenlog.n.
Advanced usage key combinations stopping the output temporarily Ctrl-a s Send a stop signal (associated with Ctrl-s by terminals) to current window. Ctrl-a q To start screen output again
Splitting the screen.. Ctrl-a S Splitting screen in half, lets you see two windows at the same time. Very useful for debugging with tail.
Moving between screens and unsplit Ctrl-a tab Move between split screens Ctrl-a Q Unsplit all windows from screen
Detaching screen (closing screen temporarily) Ctrl-a d detach all screens. After this command screen program will continue to run in the background. It’s good to do this when you want to change your place from one computer to the other.
Returning back to detached screen in a ”single” user system You can open detached screen with command screen -r If you have more than one screen in the same shell, you need to define with screen to open. You’ll have to type screen –r and number of screen you want to open.
Returning back to detached screen with another user If the other user is already logged in and the screen is open for him, y ou can open detached screen with command screen -x
Your consent to our cookies if you continue to use this website.