How to shutdown #linux desktop:

sudo shutdown -P now # no too long

sudo systemctl poweroff # still long

sudo poweroff # okay

sudo init 0 # finally less )

ls -l /usr/sbin/{poweroff,shutdown,init} # they all owned by systemd ;)

Follow

@nixCraft

echo 1 > /proc/sys/kernel/sysrq; echo s > /proc/sysrq-trigger; echo u > /proc/sysrq-trigger; echo b > /proc/sysrq-trigger

Works even if systemd has hung, or other weird stuff, plus safely syncs disks.

Sign in to participate in the conversation
Mastodon

Time for a cuppa... Earl Grey please!