cat /etc/passwd | cut -d : -f7 | uniq -c | sort -n | tail -1
uniq -c:在每列旁边显示该行重复出现的次数。
sort -n:以数值来排序(从小到大)

cat /etc/passwd | cut -d : -f7 | uniq -c | sort -n | tail -1
uniq -c:在每列旁边显示该行重复出现的次数。
sort -n:以数值来排序(从小到大)
本文标题:3.取出当前系统上被用户当作其默认shell的最多的那个shel
本文链接:https://www.haomeiwen.com/subject/vdudyttx.html
网友评论