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

cat  /etc/passwd |  cut  -d:  -f1,3,7 | sort  -t:  -k2   -n | tail  -n1

posted @ 2022-03-15 14:47  海月如希  阅读(51)  评论(0)    收藏  举报