查出用户UID最大值的用户名、UID及shell类型

[09:08:01 root@centos8 ~]#cat /etc/passwd  |cut -d: -f1,3,7|sort -t: -k2 -n |tail -n1
nobody:65534:/sbin/nologin
posted @ 2023-10-07 13:49  小糊涂90  阅读(54)  评论(0)    收藏  举报