文本處理工具命令練習

一、找出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

相關文章
相關標籤/搜索