码迷,mamicode.com
首页 > 其他好文 > 详细

find命令

时间:2019-04-22 00:12:02      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:grep   文件   find   code   block   hello   区分   开头   name   

查找当前目录下的hello.txt文件

find -name "hello.txt"
find |grep hello.txt
ll |grep hello.txt



查找所有目录下的hello.txt文件

find / -name "hello.txt"
find / |grep hello.txt



查找当前目录下以h开头的文件

# 区分大小写
find -iname "h*"
# 不区分大小写
find -iname "h*"

find命令

标签:grep   文件   find   code   block   hello   区分   开头   name   

原文地址:https://www.cnblogs.com/bobi1234/p/10747708.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!