0
0
Linux CLIscripting~5 mins

tmux for persistent sessions in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is tmux used for in Linux?
tmux is a terminal multiplexer that lets you create, manage, and switch between multiple terminal sessions inside one window. It keeps sessions running even if you disconnect.
Click to reveal answer
beginner
How do you start a new tmux session named work?
Use the command tmux new -s work. This creates a new session called 'work' where you can run commands.
Click to reveal answer
beginner
How can you detach from a tmux session without closing it?
Press Ctrl + b then d. This detaches you from the session but keeps it running in the background.
Click to reveal answer
beginner
How do you list all active tmux sessions?
Run tmux ls or tmux list-sessions. It shows all sessions you can attach to.
Click to reveal answer
beginner
How do you re-attach to a tmux session named work?
Use tmux attach -t work. This opens the session named 'work' so you can continue where you left off.
Click to reveal answer
What does tmux allow you to do?
AKeep terminal sessions running after disconnecting
BAutomatically update Linux packages
CCreate graphical windows
DMonitor CPU temperature
Which key combination detaches you from a tmux session?
ACtrl + z
BCtrl + b then d
CCtrl + c
DCtrl + x
How do you start a new tmux session named 'dev'?
Atmux open dev
Btmux start dev
Ctmux new -s dev
Dtmux create dev
What command lists all tmux sessions?
Atmux ls
Btmux show
Ctmux sessions
Dtmux list
How do you re-attach to a session named 'work'?
Atmux start work
Btmux connect work
Ctmux resume work
Dtmux attach -t work
Explain how tmux helps keep your work safe when you lose connection to a server.
Think about what happens if your internet drops while working remotely.
You got /3 concepts.
    Describe the steps to create, detach, and then re-attach to a tmux session.
    Focus on commands and key presses in order.
    You got /3 concepts.