Linux Commands Helper
💬 Your AI-powered Linux assistant
systemctl Command - Control the systemd System and Service Manager
The systemctl command is used to examine and control the systemd system and service manager. It is the primary tool for managing services, units, and the system state on modern Linux distributions.
Syntax
systemctl [options] command [unit...]
Examples
systemctl status nginx
Show the status of the nginx service.
sudo systemctl restart sshd
Restart the sshd service.
sudo systemctl enable httpd
Enable the httpd service to start at boot.
sudo systemctl list-units --type=service
List all active services.
Notes
- systemctl is only available on systemd-based systems.
- Requires root privileges for most service management operations.
- Use
systemctl --help
or the man page for more options.