Bird
0
0

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

medium📝 Command Output Q13 of 15
Linux CLI - Process Management
What will be the output of the command systemctl status sshd if the SSH service is running?
AActive: active (running) since [date and time]
BFailed to start sshd.service: Unit not found.
CInactive (dead)
DNo output is shown.
Step-by-Step Solution
Solution:
  1. Step 1: Understand what systemctl status shows

    This command displays the current state of the service, including if it is running or stopped.
  2. Step 2: Interpret the output for a running sshd service

    If sshd is running, the output includes a line like Active: active (running) since ... showing it is up.
  3. Final Answer:

    Active: active (running) since [date and time] -> Option A
  4. Quick Check:

    Status shows running state if active [OK]
Quick Trick: Look for 'Active: active (running)' in status output [OK]
Common Mistakes:
  • Expecting no output when service runs
  • Confusing 'inactive' with running
  • Thinking error means service is running

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes