`
thinktothings
  • 浏览: 770751 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

linux搜索文件

 
阅读更多

linux搜索文件

 

 

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

相关推荐

Global site tag (gtag.js) - Google Analytics