Learning Linux: Screen

4,786 views

Published on

Learning Linux with Screen:
- using it
- howto

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,786
On SlideShare
0
From Embeds
0
Number of Embeds
59
Actions
Shares
0
Downloads
99
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Learning Linux: Screen

  1. 1. Learning Linux: By Alexandro “JZA” Colorado [email_address] Screen
  2. 2. ToC <ul><li>What is screen? </li></ul><ul><li>Why is screen useful? </li></ul><ul><li>Screen cheat sheet. </li></ul><ul><li>Configuring screen </li></ul>
  3. 3. What is screen? <ul><li>Screen is a command line application. </li></ul><ul><li>Screen will let you have different shell on the same session. </li></ul><ul><li>Allow you to have different shell on the same screen. </li></ul><ul><li>Screen allow you to keep your sessions and processes even after logging out. </li></ul>
  4. 4. How is screen useful? <ul><li>Screen allows you to compile on one screen and check your email with Pine on the other. </li></ul><ul><li>If you SSH to a remote box, you can use screen to keep processes running after logging out. </li></ul><ul><li>allows you to look real time processes as you work on a different screen. </li></ul><ul><li>will let you log into other desktops and keep the session open. </li></ul>
  5. 5. Screen cheat sheet $ screen - start screen $ screen -list - list current running screens $ screen -r [number] - reattach screens $ screen -d - detach screens (useful for exiting) $ screen -wipe – do the same as a list but remove dead screens $ screen -S [SessionName] – name a new session Shortcut: $ Ctrl-a c – create a new window $ Ctrl-a 0...9 – switch to a to a different window $ Ctrl-a n – switch to the next window $ Ctrl-a p – switch to previous window $ Ctrl-a S – Split the current region $ Ctrl-a X – kills the current region $ Ctrl-a ? - show keybindings $ Ctrl-a multiuser:on
  6. 6. HowTo: screen and ssh $ ssh user@server [$user@server] screen
  7. 7. Configuring screen <ul><li>Screen is used on .screenrc </li></ul><ul><li>vbells configuring bells alarms </li></ul><ul><li>define default shell </li></ul><ul><li>autodetach , detach on hangup </li></ul><ul><li>termcap , terminfo , termcapinfo , to configure a terminal </li></ul><ul><li>keybindings : ^k, ^h, </li></ul>

×