**四劍客經常使用命令彙總** 1.find find path -option [ -print ] [ -exec -ok command ] {} \ (find 查找路徑 -type f/d -name ..... -size 1k/M -mtime/atime/ctime +-9 文件) find -type/-perm/-empty/ find /tmp -type f -name "*.tmp" -exec rm -rf '{}' \; find / -type f -name test.txt -size 10k -mtime find . -type f -name ..... -exec rm -rf {} \;或者|xargs rm -rf {} 2.grep grep -v grep -c grep grep -e = egrep egrep --color "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" 3.sed sed -i 4.awk awk -F: awk -f awk -v awk -F: '{print $1":"$NF}' :""表示添加的內容 ifconfig | grep "inet addr:"|grep -v "127.0.0.1"|awk '{print $2}'|awk