cat /etc/passwd | cut -d : -f7 | uniq -c | sort -n | tail -1
uniq -c:在每列旁邊顯示該行重復(fù)出現(xiàn)的次數(shù)。
sort -n:以數(shù)值來排序(從小到大)

cat /etc/passwd | cut -d : -f7 | uniq -c | sort -n | tail -1
uniq -c:在每列旁邊顯示該行重復(fù)出現(xiàn)的次數(shù)。
sort -n:以數(shù)值來排序(從小到大)