Challenge - 5 Problems
Systemctl Service Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of checking a service status?
You run the command
systemctl status sshd on a Linux system where the SSH service is active and running. What will the command output include?Linux CLI
systemctl status sshd
Attempts:
2 left
💡 Hint
Think about what 'active and running' means for a service status.
✗ Incorrect
When a service is running, systemctl status shows it as active (running) with details like start time and process ID.
💻 Command Output
intermediate2:00remaining
What happens when you disable a service?
You run
systemctl disable apache2 on a Linux system. What is the immediate effect of this command?Linux CLI
systemctl disable apache2
Attempts:
2 left
💡 Hint
Disabling a service affects its behavior on system startup.
✗ Incorrect
Disabling a service removes its automatic start on boot but does not stop it immediately.
📝 Syntax
advanced2:00remaining
Which command correctly restarts a service immediately?
You want to restart the
nginx service immediately using systemctl. Which command is correct?Attempts:
2 left
💡 Hint
Restart means stop and start in one command.
✗ Incorrect
The restart command stops and then starts the service immediately.
💻 Command Output
advanced2:00remaining
What error appears when starting a non-existent service?
You run
systemctl start foobar where no service named 'foobar' exists. What error message will systemctl show?Linux CLI
systemctl start foobar
Attempts:
2 left
💡 Hint
Think about what happens if the service file is missing.
✗ Incorrect
systemctl reports 'Unit not found' when the service does not exist.
🚀 Application
expert2:00remaining
How to check which services are enabled at boot?
You want to list all services that are enabled to start automatically at boot on a Linux system using systemctl. Which command will give you this list?
Attempts:
2 left
💡 Hint
Look for a command that lists unit files filtered by enabled state.
✗ Incorrect
The command 'systemctl list-unit-files --state=enabled' lists all enabled services at boot.