随笔分类 -  作业

摘要:1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 [15:17:49 root@centos7 ~]#getent passwd | grep -v "/sbin/nologin" | cut -d: -f1 root sync sh 阅读全文
posted @ 2022-10-26 20:18 Alexander7 阅读(23) 评论(1) 推荐(0)
摘要:1、显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录 [21:57:05 root@Centos8 etc]#ll -d /etc/ [^[:alpha:]]* [21:59:31 root@Centos8 etc]#ls /etc/ [^a-z][a-zA-Z 阅读全文
posted @ 2022-10-15 00:54 Alexander7 阅读(24) 评论(1) 推荐(0)
摘要:1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 [22:03:21 root@Centos8 ~]#cat /etc/passwd | grep -v /sbin/nologin | cut -d: -f 1 root sync s 阅读全文
posted @ 2022-05-03 22:08 Alexander7 阅读(29) 评论(0) 推荐(0)