你怎么能通过查找只搜索文件名? [英] How can you search only filenames by find?
本文介绍了你怎么能通过查找只搜索文件名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这个问题是基于回答。 / p>
我在家跑步
find - ./桌面
我将这个命令理解为
- 在当前目录找到没有参数
(= / Users / masi /)
- 在当前目录找到文件夹名称Desktop
您如何阅读命令?
解决
find ./ -name桌面
This question is based on the answer.
I run at home
find -- ./ Desktop
I understand the command as
- find without parameters at the current directory that is home (= /Users/masi/)
- find the folder name Desktop at the current directory
How do you read the command?
解决方案
I think what you want is:
find ./ -name Desktop
这篇关于你怎么能通过查找只搜索文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文