1、文件类
zip -r dir.zip dir/
unzip dir.zip
rm -f file
rm -rf dir
updatedb
locate *redis.log
2、资源
ps -ef |grep java
kill -9 pid
top
df -h
3、git 命令
git clone http://帐号:密码@git.url
git fetch --all
git reset --hard origin/master
git pull
git branch -a
git branch
git checkout 分支名
git reset --hard
git pull
git stash
git pull
git stash pop
4、java 相关
jmap -heap pid
jmap -histo pid|less
jmap -histo:live pid
jmap -dump:format=b,file=/opt/dump/test.dump pid
jsp [-l -q -m -v]
-XX:+PrintGCDetails
-XX:+HeapDumpOnOutOfMenoryError