3.取出当前系统上被用户当作其默认shell的最多的那个shel
2016-10-05 本文已影响0人
hh111
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:以数值来排序(从小到大)