2016年6月1日
摘要: 查看目录下每个文件夹的大小:du -h --max-depth=1 阅读全文
posted @ 2016-06-01 10:42 咖啡牛奶1/3 阅读(72) 评论(0) 推荐(0) 编辑
  2016年5月31日
摘要: Dear little yang So beautiful boy as you, the most beautiful boy is you who i ever saw, like a sun ,the shine into my heart, it makes my heart like fl 阅读全文
posted @ 2016-05-31 13:33 咖啡牛奶1/3 阅读(160) 评论(0) 推荐(1) 编辑
摘要: 命令1 (查看有几个CPU):cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 命令2 (每个CPU几核):cat /proc/cpuinfo |grep "cores"|uniq 核数:两个结果相乘 *_* 阅读全文
posted @ 2016-05-31 13:25 咖啡牛奶1/3 阅读(189) 评论(0) 推荐(0) 编辑
  2015年10月23日
摘要: 1.shell while语句语法while conditiondo statementsdone2.shell while语句实例 #! /bin/sh 2 var1=1 3 while(($var1 < 10)) 4 do echo "weishenmewobuhu... 阅读全文
posted @ 2015-10-23 14:44 咖啡牛奶1/3 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://www.shellcn.net/shell/shell_for_in.html1.shell for in语句语法for 变量名 in 列表do ...done2.shell for in语句实例 1 #! /bin/sh 2 var1=$1 3 <<EOF21 f... 阅读全文
posted @ 2015-10-23 14:15 咖啡牛奶1/3 阅读(125) 评论(0) 推荐(0) 编辑