你怎么能通过查找只搜索文件名? [英] How can you search only filenames by find?

查看:265
本文介绍了你怎么能通过查找只搜索文件名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是基于回答。 / p>

我在家跑步

  find  -  ./桌面

我将这个命令理解为


  1. 在当前目录找到没有参数
    (= / Users / masi /)
  2. 在当前目录找到文件夹名称Desktop

您如何阅读命令?

解决

  find ./ -name桌面


This question is based on the answer.

I run at home

find -- ./ Desktop                                       

I understand the command as

  1. find without parameters at the current directory that is home (= /Users/masi/)
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆