Systemctl cheat sheet: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
systemctl start graphical.target | systemctl start graphical.target | ||
*List targets | *List targets | ||
ls -l /lib/systemd/system/runlevel*.target | 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 |
Revision as of 19:49, 11 July 2022
Systemctl
systemctl cat service systemctl cat rc-local.service systemd-analyze blame systemd-analyze time
- Targets
systemctl get-default (graphical.target / multi-user.target) systemctl set-default multi-user.target
- 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