Linux常用命令

sudo tcpdump -i any dst host 127.0.0.1 and port 6379

git stash save "info", apply, pop, list, drop

about docker

docker run -it mirror/name /bin/bash
docker images #show mirros lsit
docker ps -a #show container.

crontab

crontab -e
min, hour, day, month, weekday

often use

df -hl #show disk space
wc -l * #show file lines total in cur dir.

git

git reset --hard <commit_hash>
git cherry-pick <commit_hash>
git log --graph . --author="alan"
git checkout <commit_hash> /path/to/file/or/dir
git checkout <branch_name>

posted @ 2020-07-10 14:12  阿龙233  阅读(118)  评论(0编辑  收藏  举报