Search the PID for certain process
ps -ef | grep [processname]
Search the port possessed by certain process with PID
netstat -anp | grep [PID]
(un)compress file
tar -zcvf repo_name.tar.gz repo_name
tar -xvf repo_name.tar.gz
Show repository size
du -sh *
利用iptables监听端口流量
iptables -I [INPUT|OUTPUT] -p [tcp|udp] --sport 80 iptables -D [INPUT|OUTPUT] 1 iptables -n -v -L -t filter
生成指定大小的随机二进制文件
dd if=/dev/urandom of=test.txt bs=1M count=500