linux常用命令搜索

解压
tar - xzvf webcmp.tar.gz /目的目录

压缩
tar - czvf webcmp.tar.gz /压缩源文件

发包命令
cd /cap/sc_bossdata_20140516/
nohup tcpreplay -i lo -l 99999999 -T rdtsc -M 200 ./boss_crm_20140515.pcap* &

抓包
tcpdump -i eth1 -n -t -A|grep zentao

tcpdump -i lo -n -t -A|grep xxx


linux安装软件
搜索 aptitude search mariadb
安装 aptitude install mariadb

ssh连接MySql
root@ubuntu:/# cd /opt/mariadb/bin/
root@ubuntu:/opt/mariadb/bin# ./mysql -u root -p

linux 查看行号 vi 之后 :set nu

搜索字符串个数
grep -o '_dojox_collections.js' filter20151009.txt | wc -l

原文地址:https://www.cnblogs.com/flish/p/4863013.html