Debian/Ubuntu安装ps,ping,telnet,netstat命令

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

你可能感兴趣的:(linux,linux)