1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来
[root@centos8 etc]# grep -Ev '.*nologin$' /etc/passwd |sort -nr|uniq -c
1 user3:x:1003:1003::/home/user3:/bin/bash
1 user2:x:1002:1002::/home/user2:/bin/bash
1 user1:x:1001:1001::/home/user1:/bin/bash
1 sync:x:5:0:sync:/sbin:/bin/sync
1 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
1 root:x:0:0:root:/root:/bin/bash
1 liujia:x:1000:1000:liujia:/home/liujia:/bin/bash
1 halt:x:7:0:halt:/sbin:/sbin/halt
2、查出用户UID最大值的用户名、UID及shell类型
image.png
3、统计当前连接本机的每个远程主机IP的连接数,并按从大到小排序
image.png
4、编写脚本disk.sh,显示当前硬盘分区中空间利用率最大的值
image.png
image.png
image.png
5、编写脚本 systeminfo.sh,显示当前主机系统信息,包括:主机名,IPv4地址,操作系统版本,内核版本,CPU型号,内存大小,硬盘大小
image.png
image.png
6、20分钟内通关vimtutor(可参考https://yyqing.me/post/2017/2017-02-22-vimtutor-chinese-summary)