linux学习
信雨2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux重点总结
1. 有一个文件ip.txt,每行一条ip记录,共若干行,下面哪个命令可以实现“统计出现次数最多的前3个ip及其次数”?sort ip.txt | uniq -c | sort -rn | head -n 3解析:首先sort进行排序,将重复的行都排在了一起,然后使用uniq -c将重复的行的次数放在了行首,在用sort -rn进行反向和纯文本排序,这样就按照重复次数从高到低原创 2016-06-23 22:22:59 · 655 阅读 · 0 评论 -
linux基础知识(一)
//提示关机信息[root@hadoop1 ~]#Broadcast message from root@hadoop1 (/dev/pts/0) at 11:41 ... The system is going down for maintenanceNOW!this computer will reboot//立即关机[root@hadoop1 ~]原创 2016-06-06 10:09:25 · 1211 阅读 · 0 评论
分享