daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Screen Quick Reference
  2.  
  3. ## Basic
  4.  
  5. | Description               | Command               |
  6. |---------------------------------------|---------------------------------------|
  7. | Start a new session with session name | `screen -S <session_name>`        |
  8. | List running sessions / screens   | `screen -ls`              |
  9. | Attach to a running session       | `screen -x`               |
  10. | Attach to a running session with name | `screen -r <session_name>`        |
  11. | Detach a running session      | `screen -d <session_name>`        |
  12. | Enable vertical scrolling mode* in a running session      | `Ctrl-a ESC`      |
  13. * The vertical scrolling mode works with mouse scrolling as well as up and down arrows. Press `ESC` to cancel out of this mode.
  14.  
  15. ## Escape Key
  16.  
  17. All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.
  18.  
  19. ## Getting Out
  20.  
  21. | Description               | Command                       |
  22. |---------------------------------------|-------------------------------------------------------|
  23. | detach                | `Ctrl-a d`                        |
  24. | detach and logout (quick exit)    | `Ctrl-a D D`                      |
  25. | exit screen               | `Ctrl-a :` quit or exit all of the programs in screen.|
  26. | force-exit screen             | `Ctrl-a C-\` (not recommended)            |
  27.  
  28. ## Help
  29.  
  30. | Description   | Command           |
  31. |---------------|-------------------------------|
  32. | See help  | `Ctrl-a ?` (Lists keybindings)|
  33.  
  34. ## Window Management
  35.  
  36. | Description               | Command                               |
  37. |---------------------------------------|-----------------------------------------------------------------------|
  38. | Create new window             | `Ctrl-a c`                                |
  39. | Change to last-visited active window  | `Ctrl-a Ctrl-a` (commonly used to flip-flop between two windows)  |
  40. | Change to window by number        | `Ctrl-a <number>` (only for windows 0 to 9)               |
  41. | Change to window by number or name    | `Ctrl-a ' <number or title>`                      |
  42. | Change to next window in list     | `Ctrl-a n` or `Ctrl-a <space>`                    |
  43. | Change to previous window in list     | `Ctrl-a p` or `Ctrl-a <backspace>`                    |
  44. | See window list           | `Ctrl-a "` (allows you to select a window to change to)       |
  45. | Show window bar           | `Ctrl-a w` (if you don't have window bar)             |
  46. | Kill current window           | `Ctrl-a k` (not recommended)                      |
  47. | Kill all windows          | `Ctrl-a \` (not recommended)                      |
  48. | Rename current window         | `Ctrl-a A`                                |
  49.  
  50. ## Split screen
  51.  
  52. | Description               | Command                               |
  53. |---------------------------------------|-----------------------------------------------------------------------|
  54. | Split display horizontally        | `Ctrl-a S`                                |
  55. | Split display vertically      | `Ctrl-a \|` or `Ctrl-a V` (for the vanilla vertical screen patch) |
  56. | Jump to next display region       | `Ctrl-a tab`                              |
  57. | Remove current region         | `Ctrl-a X`                                |
  58. | Remove all regions but the current one| `Ctrl-a Q`                                |
  59.  
  60. ## Misc
  61.  
  62. | Description                       | Command                               |
  63. |-------------------------------------------------------|-----------------------------------------------------------------------|
  64. | Redraw window                     | `Ctrl-a C-l`                              |
  65. | Enter copy mode                   | `Ctrl-a [` or `Ctrl-a <esc>` (also used for viewing scrollback buffer)|
  66. | Paste                         | `Ctrl-a ]`                                |
  67. | Monitor window for activity               | `Ctrl-a M`                                |
  68. | Monitor window for silence                | `Ctrl-a _`                                |
  69. | Enter digraph (for producing non-ASCII characters)    | `Ctrl-a Ctrl-v`                           |
  70. | Lock (password protect) display           | `Ctrl-a x`                                |
  71. | Enter screen command                  | `Ctrl-a :`                                |
  72. | Enable logging in the screen session          | `Ctrl-a H`                                |
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top