發現ubuntu的ifconfig命令不能用了
bim@bim-ThinkPad-T440p:~$
bim@bim-ThinkPad-T440p:~$ ifconfig
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools
bim@bim-ThinkPad-T440p:~$
需要打開軟件與更新,勾選幾個選項:
然后安裝:
bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ sudo apt install net-tools 正在讀取軟件包列表... 完成 正在分析軟件包的依賴關系樹 正在讀取狀態信息... 完成 沒有可用的軟件包 net-tools,但是它被其它的軟件包引用了。 這可能意味着這個缺失的軟件包可能已被廢棄, 或者只能在其他發布源中找到 E: 軟件包 net-tools 沒有可安裝候選 bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ sudo apt install net-tools 正在讀取軟件包列表... 完成 正在分析軟件包的依賴關系樹 正在讀取狀態信息... 完成 下列軟件包是自動安裝的並且現在不需要了: linux-headers-5.4.0-42-generic linux-hwe-5.4-headers-5.4.0-42 linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic linux-modules-extra-5.4.0-42-generic 使用'sudo apt autoremove'來卸載它(它們)。 下列【新】軟件包將被安裝: net-tools 升級了 0 個軟件包,新安裝了 1 個軟件包,要卸載 0 個軟件包,有 206 個軟件包未被升級。 需要下載 194 kB 的歸檔。 解壓縮后會消耗 803 kB 的額外空間。 獲取:1 https://mirrors.aliyun.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB] 已下載 194 kB,耗時 0秒 (616 kB/s) 正在選中未選擇的軟件包 net-tools。 (正在讀取數據庫 ... 系統當前共安裝有 317833 個文件和目錄。) 正准備解包 .../net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ... 正在解包 net-tools (1.60+git20161116.90da8a0-1ubuntu1) ... 正在設置 net-tools (1.60+git20161116.90da8a0-1ubuntu1) ... 正在處理用於 man-db (2.8.3-2ubuntu0.1) 的觸發器 ... bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ ifconfig enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 68:f7:28:f8:3b:09 txqueuelen 1000 (以太網) RX packets 17949 bytes 11309586 (11.3 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 16923 bytes 2774113 (2.7 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xf1600000-f1620000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (本地環回) RX packets 19507 bytes 1874474 (1.8 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 19507 bytes 1874474 (1.8 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 103.13.20.65 netmask 255.255.255.0 broadcast 183.173.207.255 inet6 fe80::2118:dbv5:f10a:86a prefixlen 64 scopeid 0x20<link> ether 10:4a:7d:b0:6c:47 txqueuelen 1000 (以太網) RX packets 414750 bytes 176198476 (176.1 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 53878 bytes 10407948 (10.4 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$ bim@bim-ThinkPad-T440p:~$
######################3