题海让大学四年没有难题
白天模式登陆

题目详情

单选题 有一个文件ip.txt,每行一条ip记录,共若干行,下面哪个命令可以实现"统计出现次数最多的前3个ip及其次数"

A. A.uniq -c ip.txt | sort -nr | head -n 3

B. B.sort ip.txt | uniq -c | sort -rn | head -n 3

C. C.cat ip.txt | count -n | sort -rn | head -n 3

D. D.cat ip.txt | sort | uniq -c | sort -rn | top -n 3

学科:云计算运维与开发

时间:2025-03-25 12:10:55

Copyright © 2022 津ICP备2021001502号