poweroff

Power off the system. More information: <https://www.man7.org/linux/man-pages/man8/poweroff.8.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y sysvinit
Ubuntu
RUN apt-get update && \ apt-get install -y upstart-sysv
Arch Arch Linux
RUN pacman -S --noconfirm systemd-sysvcompat
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y runit-init
CentOS
RUN yum install -y usermode
Fedora
RUN dnf install -y systemd
Raspbian
RUN apt-get update && \ apt-get install -y upstart
click the source code to copy install poweroff on any operating system with command-not-found.com