解决linux下ifconfig不好用的问题

先找下ifconfig的位置吧: #whereis ifocnfig
路径如下 /sbin/ifconfig
直接运行 /sbin/ifconfig 显示了网卡信息
但是这样每次都输入 /sbin/ifconfig 挺麻烦的。
$ su root
切换到root 下

输入
#export PATH=$PATH:/sbin
OK。现在就可以直接
#ifconfig

永久生效编辑 vi /etc/profile 添加上:/sbin

原文地址:https://www.cnblogs.com/sherlockhomles/p/3089273.html