在工作中,可能突然需要找到某个文件,这个又不知道,需要全局查询一下。
下面是命令行:
find / -name "*.log" | xargs grep "elk" /:意思是从/开始进行查找。
意思是包含“elk”的行。