HomeTutorials › Sessions & Daemon
Sessions & Daemon

Your First Session

#005 0:11 Part of the Rysh video series

Name a session, work in it, detach -- and it keeps running without you.

Your First Session — 0:11 walkthrough

What you'll see

  1. rysh my-project -- start a named session.
  2. Run commands like git status.
  3. Detach with Ctrl+O then d.
  4. rysh list-sessions -- see it listed as detached with its PID.
  5. rysh attach my-project -- reattach with output, history, and layout restored.

Commands shown

rysh my-project
git status
d
rysh list-sessions
rysh attach my-project

Keys used

EnterCtrl+o

Transcript

0:00Name a session, work in it, then detach -- and it keeps running without you.

0:05Pass a name to rysh and you get a named session. Here we open one called my-project.

0:13Work as usual -- run commands, build, test. This pane is a normal shell.

0:21Press Ctrl+O for prefix mode, then d to detach. You drop back to your shell, but the session lives on.

0:30rysh list-sessions shows it -- still alive, marked detached, with its process ID.

0:39Reattach any time with rysh attach my-project. Your output, history, and pane layout are all restored.

Key takeaway
Sessions are persistent -- detach and reattach without losing any state.