Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
常用的linux命令
# 得到ip地址(awk使用)
ifconfig | grep "Mask" | awk '$2 {print $2}' | awk -F ':' '{print $2}'
# 找到匹配的文件并删除
find . -name *.jpg -exec rm -rf {} \
# 内容替换
tr "\\n" " "
# 拷贝文件(忽略掉某些文件)
rsync -r --exclude=.svn /source/dir /target/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment