Systemctl cheat sheet: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
systemd-analyze blame | systemd-analyze blame | ||
systemd-analyze time | systemd-analyze time | ||
*Start X from shell | *Start X from shell | ||
systemctl start graphical.target | systemctl start graphical.target | ||
Line 19: | Line 16: | ||
lrwxrwxrwx 1 root root 16 Jun 7 12:49 /lib/systemd/system/runlevel5.target -> graphical.target | lrwxrwxrwx 1 root root 16 Jun 7 12:49 /lib/systemd/system/runlevel5.target -> graphical.target | ||
lrwxrwxrwx 1 root root 13 Jun 7 12:49 /lib/systemd/system/runlevel6.target -> reboot.target | lrwxrwxrwx 1 root root 13 Jun 7 12:49 /lib/systemd/system/runlevel6.target -> reboot.target | ||
*Targets | |||
systemctl get-default (graphical.target / multi-user.target) | |||
systemctl set-default multi-user.target |
Revision as of 19:50, 11 July 2022
Systemctl
systemctl cat service systemctl cat rc-local.service systemd-analyze blame systemd-analyze time
- Start X from shell
systemctl start graphical.target
- List targets
root@vm:~# ls -l /lib/systemd/system/runlevel*.target lrwxrwxrwx 1 root root 15 Jun 7 12:49 /lib/systemd/system/runlevel0.target -> poweroff.target lrwxrwxrwx 1 root root 13 Jun 7 12:49 /lib/systemd/system/runlevel1.target -> rescue.target lrwxrwxrwx 1 root root 17 Jun 7 12:49 /lib/systemd/system/runlevel2.target -> multi-user.target lrwxrwxrwx 1 root root 17 Jun 7 12:49 /lib/systemd/system/runlevel3.target -> multi-user.target lrwxrwxrwx 1 root root 17 Jun 7 12:49 /lib/systemd/system/runlevel4.target -> multi-user.target lrwxrwxrwx 1 root root 16 Jun 7 12:49 /lib/systemd/system/runlevel5.target -> graphical.target lrwxrwxrwx 1 root root 13 Jun 7 12:49 /lib/systemd/system/runlevel6.target -> reboot.target
- Targets
systemctl get-default (graphical.target / multi-user.target) systemctl set-default multi-user.target