linux - 如何在/usr/test/only目录下的 'string'内搜索 'any file'

标签 linux terminal centos

我的操作系统是:Centos Desktop。
我想搜索文本字符串

在目录中的任何文件内

  /usr/test/

最佳答案

尝试 grep string -r/usr/test

将搜索/usr/test 和所有子目录

关于linux - 如何在/usr/test/only目录下的 'string'内搜索 'any file',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18179647/

相关文章:

C++ 在终端中用回车重新打印文本

python - Visual Studio 代码 : How to choose cmd terminal for execution of Python files

ruby - 安装后capifony报错

linux - 如何从字符串中将数字读入变量

linux - 在Linux中跨服务器同步文件处理线程

arrays - Shell 脚本不创建数组列表

docker - 我可以在Docker的终端中读取文件时如何在Finder中查找文件

php - 如何安装旧版本的PHPUNIT?

gtk - 构建 glib 给出错误 : gfileutils. c :57:25: error: linux/magic. h:没有这样的文件或目录

linux - 放入手册页的最佳实践