11 2021 档案

摘要:1、编写脚本disk.sh,显示当前硬盘分区中空间利用率最大的值 [root@centos8 ~]# cat desk.sh #! /bin /bash echo `df|grep '^/dev/sda'|tr -s " "| cut -d " " -f5| sort -nr| head -1` [ 阅读全文
posted @ 2021-11-29 15:45 gamebear 阅读(114) 评论(0) 推荐(0)
摘要:1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 [root@centos8 ~]# grep -v /sbin/nologin /etc/passwd #输出默认shell为非/sbin/nologin的用户 root:x:0:0: 阅读全文
posted @ 2021-11-17 13:33 gamebear 阅读(62) 评论(0) 推荐(0)