Where to start First steps track · 15 stages
Linux Labs

screen — terminal multiplexer

cheat sheet · GNU screen https://lab.dimsanych.ru/en/wiki/screen/

Cheat sheet

  • screen -S name new named session
  • screen -ls list sessions
  • screen -r name attach to a session
  • screen -d -r name detach from another terminal and attach here
  • Ctrl+a d detach — the session keeps running
  • screen -dmS job cmd start detached right away, for scripts

Options

-S gives the session a name instead of a pid number — without it, screen -ls shows hard-to-read identifiers. -d -r solves the common "session busy on another terminal" problem: it detaches it there first, then attaches it here.

Loading…