linux查找文件

绝对强悍find . -maxdepth 1 -name "@*" 这个命令意思是,查找当前目录下以@开头的文件或者目录,搜索深度为一级也就是只在当前目录找,不进入子目录,如果你要从/目录开始找就:find / -maxdepth 1 -name "@*" 如果想搜全盘,就把-maxdepth 1 去掉

find / -name "abc"

猜你喜欢

转载自zjutsoft.iteye.com/blog/1730499