waynelin

导航

运维

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

 

posted on 2018-10-01 04:03  维尼林  阅读(166)  评论(0编辑  收藏  举报