ps 命令所在的安装包名字为procps
可在Debian/Centos 中使用命令apt-file search /bin/ps | grep -w "/bin/ps"
搜索命令对应安装包的名字
安装
apt-get update
apt-get install procps
Debian/Ubuntu安装ping命令
apt-get update
apt-get install inetutils-ping
Centos安装ping 命令
yum install iputils
Debian/Ubuntu安装telnet命令
apt-get update
apt-get install telnet
Debian/Ubuntu、CentOS安装netstat命令
# Debian
apt-get install net-tools
# Ubuntu
apt-get install net-tools
# Alpine
apk add net-tools
# Arch Linux
pacman -S net-tools
# Kali Linux
apt-get install net-tools
# CentOS
yum install net-tools
# Fedora
dnf install net-tools
# Raspbian
apt-get install net-tools
top命令
Debian
apt-get install procps
Ubuntu
apt-get install procps
Alpine
apk add procps
Arch Linux
pacman -S procps-ng
Kali Linux
apt-get install procps
CentOS
yum install procps
Fedora
dnf install bro-devel
Raspbian
apt-get install procps