systemctl [command] [unit]Arguments explained
- status shows current state.
- start and stop affect the current boot.
- enable and disable affect startup.
- restart stops then starts.
- reload asks a service to reread configuration if supported.
Common examples
systemctl status sshShows service state, recent logs, and unit metadata.
sudo systemctl enable --now nginxStarts nginx now and enables it at boot.
| Field | Details |
|---|---|
| Command | systemctl |
| Category | Services and System Control |
| Primary use | Controls systemd services and system state. |
| Syntax | systemctl [command] [unit] |