0
0
Linux CLIscripting~10 mins

tmux for persistent sessions in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Anew
Bsession
Cwork
Dstart
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'.
2fill in blank
medium

Complete 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'
Acreate
Bnew
Cstart
Dattach
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.
3fill in blank
hard

Fix the error in the command to list all tmux sessions.

Linux CLI
tmux [1]
Drag options to blanks, or click blank then click option'
Alist-sessions
Bls
Clist
Dshow
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-l' alone which is not a valid tmux option.
Using 'show' which lists options, not sessions.
4fill in blank
hard

Fill 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'
Anew-window
Battach
Cdev
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'attach' or 'start' instead of 'new-window'.
Not specifying the window name after '-n'.
5fill in blank
hard

Fill 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'
Akill-session
Bls
Clist-sessions
Dattach
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'attach' instead of 'list-sessions' after killing.
Using 'kill' without '-session' which is invalid.