$systemctl
Control and inspect the systemd system and service manager.
systemctl [OPTIONS] COMMAND [UNIT...]Try `systemctl` Live in Interactive Sandbox
Zero-install client simulation with real-time feedback.
Overview & How systemctl Works
`systemctl` is the central management tool for controlling systemd services, daemons, timers, and system states (boot targets, reboots, shutdowns) on modern Linux distributions.
Common Flags & Command Options
| Flag / Option | Description |
|---|---|
| status [service] | Check running status, memory, and recent log entries of a service. |
| start [service] | Start (activate) one or more service units. |
| stop [service] | Stop (deactivate) one or more service units. |
| restart [service] | Stop and then start the specified service. |
| enable [service] | Enable service to start automatically on system boot. |
Practical Real-World Examples
systemctl status nginxInspects running state, PID, uptime, and recent journal logs for nginx.
Frequently Asked Questions
What is the difference between systemctl restart and systemctl reload?
`restart` stops and restarts the process (causing brief downtime). `reload` tells the service to reload its configuration files on the fly without dropping active connections.
Related Linux Commands
Report a snapshot of currently running system processes.
Display real-time Linux processes and system resource utilization.
Interactive process viewer with colorful CPU meters and mouse support.
Send termination or control signals to processes by PID.
Print the effective username associated with the current shell session.
Display or set system date and time.