摘要: cat 由第一行开始显示文件内容tac 从最后一行开始显示nl 显示同时输出行号more 一页一页的显示内容less 与more类似,但其优点是,可以往前翻页head 只看头几行tail 只看未尾几行od 以二进制的方式读取文件内容cat[-n]-n连行号一起输出到屏幕上 与nl相似more[文件名]more test.txt将test.txt一页一页的显示出来ls -al | more将ls显示的内容一页页显示出来less[文件名]less的用法比more更有弹性,使用less可以用pageup、pagedown翻看less test.txt/word在test.txt中搜寻word这个字符 阅读全文
posted @ 2012-04-08 10:23 Bevis.zhao 阅读(159) 评论(0) 推荐(0)
摘要: 1 关闭系统不必要的服务2 重启网卡 全部重启: #Service network restart 重启某块网卡 #Ifdown eth0 #Ifup eth03 查看主机硬件类型 查看CPU信息(型号)# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 Intel(R) Xeon(R) CPU E5410 @ 2.33GHz(看到有8个逻辑CPU, 也知道了CPU型号)# cat /proc/cpuinfo | grep physical | uniq -c 4 physical id : 0 4 physical id : 1 阅读全文
posted @ 2012-04-08 10:21 Bevis.zhao 阅读(165) 评论(0) 推荐(0)