Systemctl Sub-Commands
Systemctl is a command-line tool used to monitor and control systemd and units. It has several sub-commands used to show the statuses of unit files and active units or control and monitor specific units.
Commands for controlling a specific unit
There are sub-commands to control a specific unit (or unit file). If you are not logged in as the superuser, add the sudo
prefix to the command.
systemctl start [unit name]
When you want to start a unit named unit_a.service, use this command.
sudo systemctl start unit_a
systemctl stop [unit name]
When you want to stop a running unit, use this command.
sudo systemctl stop unit_a
systemctl restart [unit name]
When you want to restart a running unit, use this command.
sudo systemctl restart unit_a
systemctl reload [unit name]
When you update a unit file and reload it, use this command.
Subscribe now for
uninterrupted access.