Solaris的中文命令参考手册 (2)

find #find . -name test.txt //搜索当前目录 #find dir -name test.txt #find / -name test.txt #find /export/home -name test.txt #find ~ -name ‘*tif' //用户的主目录 #find /export -name core -exec rm {} \\ //搜索core文件并删除它们 #find dir -type d //文件类型 #find /export -type d -name test //文件夹名为test #find /export -size 400 //文件大于400块的512byte =1 blocks #find /export -name test.txt -exec rm {} \; //查找并删除 #find /export -name test.txt -ok rm {} \; //交互模式删除 y #find /export -user keven //按用户查找 #find / -user UID -exec rm{} \; //查找该用户的文件并删除 #find / -name pfile -print

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus