linux下特殊命令集锦

1.ifconfig -a | grep enp0 | cut -d : -f 1   //按照:进行切割网络文件名

如:ifconfig `ifconfig -a | grep enp0 | cut -d : -f 1` 192.168.3.110      

   //等价于ifconfig  enp0s29f7u2  192.168.3.110

  

猜你喜欢

转载自www.cnblogs.com/edan/p/9238627.html