sohotcall

GNU/Linux screen

Mar 5th, 2020
172
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INSTALL
  2. =======
  3. $ apt install screen
  4. $ nano ~/.screenrc
  5. caption always "%{= kw}%-w%{= gW}%n %t%{-}%+w %-= %m-%d %0c"
  6.  
  7. RUN
  8. ===
  9. create/reattach session $ screen -R
  10. $ screen -R <session-name>
  11. $ screen -R <session-number>
  12. list session name/number $ screen -ls
  13.  
  14. ON SCREEN
  15. =========
  16. Ctrl+A <something>
  17. a Send Ctrl+A
  18. c Create new window
  19. " List window
  20. n/p Navigate next/previous window
  21. 0-9 Navigate to window 0/1/.../9
  22. Ctrl+A Toggle previous window
  23. k Kill window (or use `exit`)
  24. S/| Split region horizontally/vertically
  25. tab Go to next region
  26. X Close region
  27. d Detach back to shell (reattach with `screen -R`)
RAW Paste Data