Stage 8 · Lesson 5 of 9
tmux: sessions that survive disconnects
is a terminal multiplexer: it keeps shell sessions running on a server even if your connection drops. It can also split one terminal into several windows and . Start a session with tmux new -s work.
Detach, leaving it running, with Ctrl+B then D. Later, reconnect with tmux attach -t work. Long jobs on a server, such as a big download or a import, belong inside tmux.
It works on your own machine too. Learn about five shortcuts and stop there until you need more.
Common trapstarting a long job over plain SSH, losing Wi-Fi and losing the job.
A question to check yourself, an AI practice session and 1 cheat sheet entry come when you add the roadmap to your account. Add it
Resources for this stage
Start with· follow one of these
- GuideFreeInitial Server Setup with Ubuntu (DigitalOcean)
DigitalOcean · Beginner
A clear, widely used checklist for a new user, sudo, SSH access and a firewall on Ubuntu
- CourseFreeThe Missing Semester of Your CS Education
MIT · Beginner
The command-line environment lecture covers SSH, tmux, job control and dotfiles
Practise
Keep handy
Also worth your time
- roadmap.sh: LinuxGo deeper
The server, networking and troubleshooting branches of the Linux map