码迷,mamicode.com
首页 > 系统相关 > 详细

linux下查找文件

时间:2018-03-06 12:03:25      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:根目录   blog   name   nbsp   token   lin   开始   文件名   php   

查询l文件名为test.txt的文件

find / -name test.txt

 

从根目录开始查找文件名为“.php”的文件,并找出包含“test”的行

find / -type f -name "*.php" | xargs grep "test"

 

在根目录下查找某个文件

find . -name "test"

linux下查找文件

标签:根目录   blog   name   nbsp   token   lin   开始   文件名   php   

原文地址:https://www.cnblogs.com/zhaoxiaorui/p/8513573.html

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