文本处理工具命令练习

一、找出ifconfig命令结果中本机的全部IPv4地址shell

    centos6取IP:
        [root@centos69 ~]# ifconfig |head -2|tail -1|cut -d: -f2|cut -dB -f1

                wKioL1mJzMvTcnnTAAAeuliBfh4494.png-wh_50

   centos7取IP:
            [root@centos7 ~]# ifconfig |head -2|tail -1|tr -s ' ' ':'|cut -d: -f3

                wKioL1mJzeWRZTG8AAAeAkKd9Do756.png-wh_50

二、查出分区空间使用率的最大百分比值centos

                wKioL1mJzz7ierERAAAfzgXbxf8764.png-wh_50

三、查出用户UID最大值的用户名、UID及shell类型 bash

                wKiom1mJ0B3y6pXgAAAmn-x8AC4232.png-wh_50

四、查出/tmp的权限,以数字方式显示 ide

                wKiom1mJ0VGC6bPXAAAeAsXMY1E333.png-wh_50

五、统计当前链接本机的每一个远程主机IP的链接数,并按从大 到小排序centos7

                wKiom1mJ0pLTxS1EAAAoiO91K_M445.png-wh_50

相关文章
相关标签/搜索