systemctl
Linux · System · available in the simulator
What it does
Control system services and units managed by systemd.
Syntax
systemctl [subcomando] [unidad]
Options and parameters
startSubcommand: Start the service.
sudo systemctl start nginxstopSubcommand: Stop the service.
restartSubcommand: Restart the service.
reloadSubcommand: Reload configuration without restarting.
statusSubcommand: Show status and recent log entries.
systemctl status nginxenableSubcommand: Enable the service to start at boot.
sudo systemctl enable nginxdisableSubcommand: Disable the service from starting at boot.
list-unitsSubcommand: List loaded units.
--nowWhen used with enable or disable, apply the change immediately.
Usage examples
sudo systemctl start nginxsystemctl status nginxsudo systemctl enable nginx