01 2021 档案
摘要:1,命令查看IO最重的前10个进程 dmesg |awk -F: '{print $1}'|sort|uniq -c|sort -rn|head -n 10iotop 2,用netstat显示网络连接、路由表或接口状态 3,查看cpu 使用率前10的进程 cpu增序 ps aux --sort=+%
阅读全文
摘要:[root@localhost ~]# cat file otherxxxx name: 123 book: abc book: efg tel:123456 other: xxxx name: 456 book: zzz tel: 123456 tel: 898989 otherxxx [root
阅读全文
摘要:1 $0 匹配到AA ,就是输出行匹配到AA 的行 2 3 4 5 awk -F ‘ ’ awk ‘ ’ 6 7 8, NR 与FNR的区别: 9 10 11 12 BEGIN和END 都是特殊的pattern 13 14 15 16 17 18 19 20
阅读全文
摘要:[root@node1 ~]# cat t2.awk #! /bin/awk BEGIN{ array[1]="a" array[2]="b" for( i in array) print i array[i] } [root@node1 ~]# [root@node1 ~]# [root@node
阅读全文

浙公网安备 33010602011771号