我试图使用“ find。filename”在Unix中找到一个特定的发现。但是文件在子文件夹中,它向我显示了许多其他文件和位置。我只想查看文件的确切位置。
找 。-名称“文件名称”
例
假设我要在当前目录(。)中搜索名称为“ main.yml”的文件
user@host123:~/prom$ find . -name "main.yml"
./node_exporter/tasks/main.yml
./node_exporter/vars/main.yml
./exporter_exporter/tasks/main.yml
./exporter_exporter/vars/main.yml
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句