Screen

From ElectroDragon Wiki
  • screen -S yourname -> create named yournamesession = C-a c
  • screen -ls -> list all session = C-a w
  • screen -r yourname -> return to yourname session
  • screen -d yourname -> detach session = C-a d
  • screen -d -r yourname -> deattach current session and return to yourname session
  • screen -x share screen
  • screen -S sandy -X screen ping www.baidu.com create a new screen called sandy and run command pin

example

  1. screen -S go // create a screen called go
  2. press ctrl+a and press d to detach the screen
  3. screen -ls to list all detached screen
  4. screen -r go // return to go screen