#systemd
25 solutions
Inspect any systemd unit's loaded/enabled state, active state, main PID, and its most recent log lines in one command.
Enable a systemd service to start at boot and start it immediately with one command.
Restart a systemd service correctly: full restart, config-only reload, or restart-only-if-running.
Use systemctl suspend for sleep-to-RAM and systemctl hibernate for sleep-to-disk, plus hybrid-sleep and suspend-then-hibernate variants.
After editing /etc/default/grub or installing a kernel, rebuild grub.cfg so the boot menu reflects it.
Use localectl set-x11-keymap to set the system-wide keyboard layout and localectl set-keymap for the text console.
timedatectl lists, sets, and verifies the system timezone and NTP sync status on systemd distributions.
Apply your edits to service files and drop-ins without rebooting.
hostnamectl sets the static, transient, and pretty hostname in one step on systemd distros, no reboot required.
systemd-analyze blame ranks every unit by the time it took to initialize, revealing what delays startup.
Create /var/log/journal and restart journald so boot logs are kept permanently and `journalctl --boot=-1` can inspect the previous boot.
Use systemctl reboot --firmware-setup to restart Linux straight into the motherboard's firmware setup screen.