第七章:网络操作

1、打印网络接口列表

[root@localhost touch_more]# ifconfig | cut -c-10 | tr -d  | tr -s eth0lo//cut -c-10 ;  输出前10个字符;//tr -d  ;      删除所有空格;//tr -s ;     压缩重复的换行符

2、查看名字服务器

[root@localhost touch_more]# cat /etc/resolv.conf # Generated by NetworkManagerdomain localdomainsearch localdomainnameserver 192.168.119.2

3、DNS查找

[root@localhost touch_more]# nsl

收藏 打印