Bird
0
0

What will be the output of the command systemctl is-active sshd if the SSH service is running?

medium📝 Command Output Q13 of 15
Linux CLI - System Administration
What will be the output of the command systemctl is-active sshd if the SSH service is running?
Ainactive
Bfailed
Cactive
Dunknown
Step-by-Step Solution
Solution:
  1. Step 1: Understand systemctl is-active

    This command checks if a service is running and returns its state.
  2. Step 2: Identify expected output when running

    If the SSH service is running, the output is active.
  3. Final Answer:

    active -> Option C
  4. Quick Check:

    Running service status = active [OK]
Quick Trick: Active means running, inactive means stopped [OK]
Common Mistakes:
  • Confusing active with inactive
  • Expecting failed when service is running
  • Thinking unknown means running

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes