显示系统状态:
systemctl status
输出激活的单元
systemctl 或 systemctl list-units
输出执行失败的单元
systemctl --failed
查看全部已安装服务
systemctl list-unit-files
马上激活单元
systemctl start <单元>
马上停止单元
systemctl stop <单元>
重新启动单元
systemctl restart <单元>
又一次载入配置
systemctl reload <单元>
输出单元执行状态
systemctl status <单元>
检查单元是否配置为自己主动启动
systemctl is-enabled <单元>
开机自己主动激活单元
systemctl enable <单元>
取消开机自己主动激活单元
systemctl disable <单元>
禁用一个单元(禁用后,间接启动也是不可能的)
systemctl mask <单元>
取消禁用一个单元
systemctl unmask <单元>
显示单元的手冊页(必须由单元文件提供)
systemctl help <单元>
又一次载入 systemd,扫描新的或有变动的单元
systemctl daemon-reload
重新启动
systemctl reboot
退出系统并停止电源
systemctl poweroff
待机
systemctl suspend
休眠
systemctl hibernate
混合休眠模式(同一时候休眠到硬盘并待机)
systemctl hybrid-sleep