uptime

Tell how long the system has been running and other information. More information: <https://www.gnu.org/software/coreutils/uptime>.

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