Ubuntu安装ifconfig、ping
apt-get update
apt install net-tools # ifconfig
apt install iputils-ping # ping
root@4bda5ebc8b73:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-secur
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRele
Get:3 http://archive.ubuntu.com/ubuntu xenial-update
Get:4 http://archive.ubuntu.com/ubuntu xenial-backpo
Get:5 http://archive.ubuntu.com/ubuntu xenial-update
Get:6 http://archive.ubuntu.com/ubuntu xenial-update
]
Fetched 1944 kB in 9s (195 kB/s)
Reading package lists... Done
root@4bda5ebc8b73:/# apt install net-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 1 not
Need to get 175 kB of archives.
After this operation, 725</