正则表达式和脚本常用运用
摘要:
1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 cat /etc/passwd |grep /sbin/nologin$ | cut -d ':' -f1 |cat -n 2、查出用户UID最大值的用户名、UID及shell类型 3 阅读全文
posted @ 2020-05-10 16:19 睡够8小时 阅读(147) 评论(2) 推荐(0) 编辑