Systemd
bootctl
bootctl status
bootctl status --esp-path /mnt/lfs/boot/hostnamectl
hostnamectl status
hostnamectl set-hostname east-web-xjournalctl
# specified date log
-S --since
-U --until
journalctl --since "2024-01-01"
journalctl --since "2024-01-01 09:00:00" --until "2024-01-01 09:15:00"
journalctl --since "20 min ago" --until "10 min ago"
# boot log
-b --boot [-0]
# kernel log
-k --dmesg
# unit log
-u --unit UNIT
# priority log
-p [debug|info|notice|warning|err|crit|alert|emerg]
# Immediately jump to the end in the pager
-e --pager-end
# number of journal entries to show and follow log
-f --follow
-n --lines 10
# Show the newest entries first
-r --reverse
# Change journal output mode
-o --output=STRING
# Add message explanations where available
-x --catalog
# specified pid log
journalctl _PID=123
# common
journalctl -xe -u nginx.service -u httpd.service -n 10 -flocalectl
loginctl
networkctl
timedatectl
systemd-analyze
systemctl
Reference:
Last updated