转自:http://yansu.org/2014/01/15/general-shell-resources.html
grep aaa *
查看文件夹大小 du -h --max-depth=1 /home/ys
查看驱动器空间 df -h
tar zxvf aaa.tar.gz
tar zcvf aaa.tar.gz aaa
login
lsof -i:8087 查看8087端口的使用
ps -aux|grep name|grep -v grep|cut -c 9-15|xargs kill -9
date 时间
date +%s 时间戳
date -d "2010-07-20 10:25:30" +%s 指定时间时间戳
date -d "@1279592730" 时间戳转时间
date -d "1970-01-01 14781 days" "+%Y/%m/%d %H:%M:%S"
top -d 1 -p pid [,pid ...]
pmap pid
ps aux|grep process_name
查看/proc/process_id/文件夹下的status文件
lsb_release -a
uname -a
python -m SimpleHTTPServer
lsof -i
curl ifconfig.me
wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com
screen -d -m -S some_ name ping my_router
ps -A -opid,stime,etime,args | grep python
nohup python /var/www/a.py &
du -h --max-depth=1 .
df -h
mtr
ping
traceroute
dig
netstat –tlnp
netstat -anop
ssh user@server bash < /path/to/local/script.sh
nc -z -v -n 127.0.0.1 20-100
siege -c20 www.google.co.uk -b -t30s
bash <(curl -s http://morning.work/examples/2015-12/install-shadowsocks.sh)