天天看點

manjaro 下找不到 ifconfig 指令

manjaro 下找不到 ifconfig 指令。

本來想看一下網卡名稱,結果輸入ifconfig後報錯,找不到此指令。

在“這篇部落格”裡的經驗,發現/sbin裡壓根沒有ifconfig,即就沒安裝這個。

然後運作

sudo pacman -S net-tools #作用是安裝net-tools這個包。
           

再運作ifconfig,傳回了我想要的網卡資訊。

~ >>> ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.106  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2408:8220:9511:f3c1::1002  prefixlen 128  scopeid 0x0<global>
        inet6 2408:8220:9511:f3c1:81ff:c1d5:a279:a59e  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::6969:ab2a:9b84:79e7  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:d4:cb:c3  txqueuelen 1000  (Ethernet)
        RX packets 36035  bytes 51172252 (48.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2067  bytes 146105 (142.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
           

“這篇部落格”:https://www.cnblogs.com/dxqNet/p/11479395.html

繼續閱讀