随笔分类 - Linux
摘要:http 请求 sudo tcpdump -A -s 0 'tcp port 8716 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' >> /home/admin/capture.log
阅读全文
摘要:1 问题:ping或者telnet设备显示故障 [root@localhost ~]# ping 192.168.163.89 connect: No buffer space available 2 原因: ARP缓存过小导致的。 内核维护的arp表过于庞大, 发生抖动, 因此导致了这种情况 几个
阅读全文
摘要:1 有时mysql show full processlist 中有大量程序要删除 2 process结构,存储在information_schema的processlist表中 3 处理 select concat('KILL ',id,';') from information_schema.p
阅读全文
摘要:ctl + u 删除光标以前的字符ctl + k 删除光标以后的字符 ctl + a 移动光标至的字符头ctl + e 移动光标至的字符尾 ctl + w 删除前面一个单词 ctl + l 清屏
阅读全文
摘要:find . \( -name "*.gz" -o -name "*.zip" -o -name "*.cfg" \) -maxdepth 1 -mtime +2 -exec rm {} \; 说明: 删除当前文件夹(-maxdepth 1) 2天以前的(-mtime +2) 多类文件 gz zip
阅读全文
摘要:将文件A强行cp成文件B,无论B是否存在,不需要提示是否overwrite cp –f A B 执行上面的命令时,便不提示。 如果存在仍有提示是否复写,则是shell中的cp经过alias成为 cp -i,i参数的意义是复写提醒。 如[root@zhang ~]# alias alias cp =’
阅读全文

浙公网安备 33010602011771号