2014年9月9日
摘要: [root@ma ~]# ps ww -p 1 PID TTY STAT TIME COMMAND 1 ? Ss 0:01 /sbin/init[root@ma ~]# ps -p 1 PID TTY TIME CMD 1 ? ... 阅读全文
posted @ 2014-09-09 17:07 zitong 阅读(232) 评论(0) 推荐(0) 编辑
摘要: [root@ma ~]# ps -p 1 PID TTY TIME CMD 1 ? 00:00:01 init 阅读全文
posted @ 2014-09-09 17:06 zitong 阅读(186) 评论(0) 推荐(0) 编辑
摘要: num >= 1125899906842624 ? "P" \ : num >= 1099511627776 ? "T" \ : num >= 1073741824 ? "G" \ : num >= 10... 阅读全文
posted @ 2014-09-09 16:55 zitong 阅读(165) 评论(0) 推荐(0) 编辑
摘要: local pct="$(awk -v one="$1" -v two="$2" 'BEGIN{ if (two > 0) { printf "%d", one/two*100; } else {print 0} }')"; 阅读全文
posted @ 2014-09-09 16:52 zitong 阅读(2641) 评论(0) 推荐(0) 编辑
摘要: -v var=val --assign var=val Assign the value val to the variable var, before execution of the program begins. Suc... 阅读全文
posted @ 2014-09-09 16:44 zitong 阅读(3747) 评论(0) 推荐(0) 编辑
摘要: [root@ma ~]# ps -eo pid,ucomm|head -3 PID COMMAND 1 init 2 kthreadd[root@ma ~]# ps axu|head -3USER PID %CPU %MEM VSZ RSS TTY S... 阅读全文
posted @ 2014-09-09 16:43 zitong 阅读(935) 评论(0) 推荐(0) 编辑
摘要: pidof 服务名称,就可以查看到服务占用的进程号 阅读全文
posted @ 2014-09-09 16:39 zitong 阅读(149) 评论(0) 推荐(0) 编辑
摘要: [root@ma ~]# vi test2#!/bin/bashi=9awk "BEGIN { for(i=1; i<=$i; i++) print i; }""test2" [New] 3L, 62C written[root@ma ~]# sh test2123456789 阅读全文
posted @ 2014-09-09 16:36 zitong 阅读(122) 评论(0) 推荐(0) 编辑
摘要: UnsafeUserParameters=1 阅读全文
posted @ 2014-09-09 12:04 zitong 阅读(1755) 评论(0) 推荐(0) 编辑
摘要: unsafeuserparameters=1 阅读全文
posted @ 2014-09-09 12:02 zitong 阅读(502) 评论(0) 推荐(0) 编辑