Bird
0
0

What will be the output of the command tmux ls if you have two sessions named dev and test running?

medium📝 Command Output Q13 of 15
Linux CLI - SSH and Remote Access
What will be the output of the command tmux ls if you have two sessions named dev and test running?
ANo sessions found
Bdev: 1 windows (created Thu Jun 1 10:00:00 2023)\ntest: 1 windows (created Thu Jun 1 10:05:00 2023)
CSession dev attached\nSession test attached
DError: tmux command not found
Step-by-Step Solution
Solution:
  1. Step 1: Understand tmux ls output

    This command lists all active tmux sessions with their names and window counts.
  2. Step 2: Match output to sessions

    With two sessions 'dev' and 'test', it shows each with window count and creation time.
  3. Final Answer:

    dev: 1 windows (created Thu Jun 1 10:00:00 2023) test: 1 windows (created Thu Jun 1 10:05:00 2023) -> Option B
  4. Quick Check:

    tmux ls lists sessions = C [OK]
Quick Trick: tmux ls lists all active sessions by name [OK]
Common Mistakes:
  • Expecting 'No sessions' when sessions exist
  • Confusing attached status with listing
  • Thinking tmux ls shows errors if tmux installed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes