manjaro 下找不到 ifconfig 命令。
本来想看一下网卡名称,结果输入ifconfig后报错,找不到此命令。
在“这篇博客”里的经验,发现/sbin里压根没有ifconfig,即就没安装这个。
然后运行
sudo pacman -S net-tools
sudo pacman -S net-tools
~ ifconfig ✔
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.111.154 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::eb08:1004:7f5e:f93e prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:da:44:a4 txqueuelen 1000 (Ethernet)
RX packets 3646 bytes 2249394 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2815 bytes 514347 (502.2 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
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2 bytes 600 (600.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 600 (600.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
就完美打开了。