Bird
0
0

You want to create a tmux session named project, detach from it, and later reattach. Which sequence of commands achieves this correctly?

hard📝 Application Q15 of 15
Linux CLI - SSH and Remote Access
You want to create a tmux session named project, detach from it, and later reattach. Which sequence of commands achieves this correctly?
Atmux new -s project; Ctrl+b d; tmux attach -t project
Btmux start project; Ctrl+c; tmux attach project
Ctmux create -n project; Ctrl+b x; tmux reattach project
Dtmux open project; Ctrl+d; tmux attach-session project
Step-by-Step Solution
Solution:
  1. Step 1: Create and detach session

    Use tmux new -s project to create session, then press Ctrl+b d to detach safely.
  2. Step 2: Reattach session

    Use tmux attach -t project to reattach to the named session later.
  3. Final Answer:

    tmux new -s project; Ctrl+b d; tmux attach -t project -> Option A
  4. Quick Check:

    Create, detach, attach with correct commands = D [OK]
Quick Trick: Use Ctrl+b d to detach, attach with tmux attach -t name [OK]
Common Mistakes:
  • Using wrong tmux commands like start or create
  • Pressing wrong keys to detach
  • Omitting '-t' when attaching

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes