2019年12月5日

第五周作业

摘要: 1、查找/etc目录下大于1M且类型为普通文件的所有文件 [root@db01 scripts]# find /etc -size +1M -type f /etc/udev/hwdb.bin /etc/selinux/targeted/active/policy.kern /etc/selinux 阅读全文

posted @ 2019-12-05 14:38 mark_dq 阅读(141) 评论(0) 推荐(0) 编辑

第四周作业

摘要: 1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 [root@db01 ~]# grep -v "/sbin/nologin" /etc/passwdroot:x:0:0:root:/root:/bin/bashsync:x:5:0: 阅读全文

posted @ 2019-12-05 14:37 mark_dq 阅读(116) 评论(0) 推荐(0) 编辑

导航