文件夹拷贝
cp -rf `ls ./ | grep -E -v "^(.git)$"` ../ant-manager/根据进程关键字批量杀进程
ps -ef |grep start |awk '{print $2}' | xargs -I X kill X
抓包
tcpdump -X -s 0 -i 2 host 192.168.3.71 and tcp port 80
tcpick -C -yP -r tcpdump_0929.cap
tcpick -i eth1 -yP -C -h "port 80"
tcpdump -X -s 0 -i 4 host 192.168.3.71 and tcp port 80 -w /tmp/tcpdump_0929.cap
tcpdump -i any port http -A
tcpdump -X -s 0 -i 4 host 192.168.3.71 and tcp port 80 -w /tmp/tcpdump.cap---------------------
$ find /alidata/www/ant_nest_dev/ -type f -name "*.php" | xargs grep "192.168.1.201"
$ grep 192.168.1.201 -rl /alidata/www/ant_nest_dev/|xargs sed -i 's/192.168.1.201/192.168.2.115/g'
本文汇总了一系列实用的Linux命令,包括文件夹拷贝、进程管理、网络数据抓包等操作,为用户提供高效的系统管理和故障排查手段。

8023

被折叠的 条评论
为什么被折叠?



