在工作中,可能突然需要找到某个文件,这个又不知道,需要全局查询一下。
下面是命令行:
find / -name "*.log" | xargs grep "elk"
/:意思是从/开始进行查找。
意思是包含“elk”的行。
在工作中,可能突然需要找到某个文件,这个又不知道,需要全局查询一下。
下面是命令行:
find / -name "*.log" | xargs grep "elk"
/:意思是从/开始进行查找。
意思是包含“elk”的行。
上一篇:002 springBoot事物
1. find 用法find单词本身就是查找到意思,意思在指定根路径下找目标文件。# find 全局搜索fin
linux | 查找文件
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M