Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4754

Beginners • Re: RASPBERRY PI MODEL B ADD POWER SWITCH

$
0
0
While `sudo shutdown -h now` works (by virtue of support in systemd), the actual shutdown command is:

Code:

sudo systemctl poweroff
To reboot, just change poweroff to reboot. On Pi models that use systemd, shutdown is nothing but a symlink to systemctl, e.g.

Code:

$ ls -al /usr/sbin/shutdownlrwxrwxrwx 1 root root 14 Jun 18  2023 /usr/sbin/shutdown -> /bin/systemctl
Use whichever you like, but you may as well come kicking-and-screaming into the systemd world -- it's here to stay...

Statistics: Posted by drankinatty — Wed May 29, 2024 11:58 pm



Viewing all articles
Browse latest Browse all 4754

Trending Articles