Challenge - 5 Problems
Tmux Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of listing tmux sessions?
You have started two tmux sessions named
work and play. What will be the output of the command tmux ls?Linux CLI
tmux ls
Attempts:
2 left
💡 Hint
Think about how tmux shows session details with names and window counts.
✗ Incorrect
The command
tmux ls lists all active tmux sessions with their names, number of windows, creation time, and size.💻 Command Output
intermediate2:00remaining
What happens when you detach a tmux session?
You are inside a tmux session named
dev. You run the command tmux detach. What is the immediate effect?Linux CLI
tmux detach
Attempts:
2 left
💡 Hint
Detaching means leaving the session without stopping it.
✗ Incorrect
Detaching a tmux session leaves it running in the background so you can reconnect later.
📝 Syntax
advanced2:00remaining
Which command attaches to a tmux session named 'project'?
You want to attach to an existing tmux session called
project. Which command is correct?Attempts:
2 left
💡 Hint
The attach command uses the -t option to specify the target session.
✗ Incorrect
The correct syntax to attach to a session is
tmux attach -t session_name.🚀 Application
advanced2:00remaining
How to create a new tmux session named 'test' with a window running 'top'?
You want to start a new tmux session named
test and immediately run the command top inside it. Which command achieves this?Attempts:
2 left
💡 Hint
Use the new session command with -s for session name and pass the command in quotes.
✗ Incorrect
The command
tmux new -s test 'top' creates a new session named 'test' and runs 'top' inside it.🔧 Debug
expert2:00remaining
Why does this tmux command fail with 'unknown option' error?
You run the command
tmux attach-session -d -t mysession but get an error: tmux: unknown option: -d. What is the reason?Linux CLI
tmux attach-session -d -t mysession
Attempts:
2 left
💡 Hint
Check which commands support the -d option in tmux.
✗ Incorrect
The -d option is used with
tmux new-session to start detached. It is not valid with attach-session.