pidof

Gets the ID of a process using its name. More information: <https://manned.org/pidof>.

Debian Debian
RUN apt-get update && \ apt-get install -y sysvinit-utils
Ubuntu
RUN apt-get update && \ apt-get install -y sysvinit-utils
Arch Arch Linux
RUN pacman -S --noconfirm procps-ng
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y sysvinit-utils
CentOS
RUN yum install -y sysvinit-tools
Fedora
RUN dnf install -y procps-ng
Raspbian
RUN apt-get update && \ apt-get install -y sysvinit-utils
click the source code to copy install pidof on any operating system with command-not-found.com