Systemd 并不是一个命令,而是一组命令,涉及到系统管理的方方面面。
##一、命令
1.1 systemctl
systemctl是 Systemd 的主命令,用于管理系统。
$ sudo systemctl reboot
$ sudo systemctl poweroff
$ sudo systemctl halt
$ sudo systemctl suspend
$ sudo systemctl hibernate
$ sudo systemctl hybrid-sleep
$ sudo systemctl rescue
1.2 systemd-analyze
systemd-analyze命令用于查看启动耗时。
$ systemd-analyze
$ systemd-analyze blame
$ systemd-analyze critical-chain
$ systemd-analyze critical-chain atd.service