
tmux: a modern replacement for screen
Tmux is a terminal multiplexer. It lets you run multiple programs in a single terminal, detach them (so they keep running in the background), and later reattach from another terminal. Tmux has three core concepts: session, window, and pane. Session — groups one or more windows together. Window — groups one or more panes; a session can have multiple windows. Pane — a split area inside a window that contains a terminal with a running program. Sessions. Start a session. To start working with tmux, create a session. If you don’t specify a name, tmux will assign one automatically: tmux To create a session with a custom name: tmux new -s session_name After creating a session, tmux attaches you to automatically. Leaving a session. There are two ways to leave a tmux session: Detach from the session — the session keeps running in the background: Ctrl+b d Exit the shell — the session will be destroyed if no windows remain: Ctrl+D Managing sessions. To see all running sessions: tmux ls To attach
Continue reading on Dev.to Tutorial
Opens in a new tab


