Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start a new tmux session named 'work'.
Linux CLI
tmux new -s [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'new' as the session name instead of a custom name.
Omitting the session name after '-s'.
✗ Incorrect
The command 'tmux new -s work' starts a new tmux session named 'work'.
2fill in blank
mediumComplete the code to attach to an existing tmux session named 'work'.
Linux CLI
tmux [1] -t work Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'new' or 'create' which start a new session instead of attaching.
Omitting the '-t' option to specify the session.
✗ Incorrect
The command 'tmux attach -t work' attaches to the existing session named 'work'.
3fill in blank
hardFix the error in the command to list all tmux sessions.
Linux CLI
tmux [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-l' alone which is not a valid tmux option.
Using 'show' which lists options, not sessions.
✗ Incorrect
The correct command is 'tmux list-sessions' or 'tmux ls' to list all sessions. The '-l' option alone is invalid.
4fill in blank
hardFill both blanks to create a new tmux window named 'dev' in session 'work'.
Linux CLI
tmux [1] -t work -n [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'attach' or 'start' instead of 'new-window'.
Not specifying the window name after '-n'.
✗ Incorrect
The command 'tmux new-window -t work -n dev' creates a new window named 'dev' in the 'work' session.
5fill in blank
hardFill all three blanks to kill a tmux session named 'work' and list remaining sessions.
Linux CLI
tmux [1] work && tmux [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'attach' instead of 'list-sessions' after killing.
Using 'kill' without '-session' which is invalid.
✗ Incorrect
The command 'tmux kill-session work && tmux list-sessions' kills the 'work' session and then lists remaining sessions.