Tuesday 16 February 2016

Bash: screen reminder

Bash command screen allows to run processes in background and return to them. Here are a few commands that might be useful.


  • screen - starts a new session
  • screen -ls - lists running sessions
  • screen -r [session_name] - attaches the session [session_name]
  • exit - close current session

Within one session it is possible to have several screens. Here are some commands to work with multiple screens. They are available after command screen.

  • ctrl+a, c - create new session
  • ctrl+a, d - detach current session
  • ctrl+a, n - next session

You can see running processes using command top. Pressing 1 would let you see a process per code. To exit press q.

No comments:

Post a Comment