•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Linux查找命令

  • Home
  • Client
  • Qa Forum
  • Linux查找命令

Posted By: Matthew | 1 Replies | Last Reply On: Jul 27, 2017 08:48:21

有人可以告诉我如何使用Linux find命令来查找文件的名称,扩展名?

Psychz - Girish

Votes: 0Posted On: Jul 27, 2017 08:48:21
 

嗨!

在大量的Linux命令中,“find”命令是最通用的命令之一。 “find”命令用于搜索字符串的文件和目录。这个命令有很多变化。其中一些在下面讨论。


搜索目录中的文件和文本

搜索文件的所有目录。

“find / -iname ”

搜索所有目录的特定文本。

“find / -iname ”

在扩展名的帮助下搜索文件。

找 。 -type f -name“* .txt”

(注意:您可以使用以下选项与“查找”命令进一步调整搜索。)

“/” - 使用此选项搜索所有目录。
“/ directory_path” - 搜索指定的目录。
“” - 搜索当前目录。
“-iname” - 使用此选项可以搜索不区分大小写。
“-iname” - 使用此选项进行区分大小写的搜索。

“-type f” - 搜索文件。
“-type d” - 搜索目录。

Was this reply helpful?

Related topics

  • 在对比:Linux的UNIX VS
  • 劣迹斑斑被设置 - 世界上最大的DDoS攻击
  • Single vs Dual vs Multi-homed Network
  • Red Hat: Not just about Linux anymore!
  • NVMe Dedicated Server
  • How to setup a dedicated server for Minecraft
  • How to disable selinux on Almalinux?
  • How to configure IP's on Ubuntu 18?
  • How to Install SSL Certificate On Centos 7
  • E3 1230 Dedicated Server
  • Deploy Psychz Dedicated Server Using Jenkins Pipeline Scripts
  • Creating New Domain
  • Chicago Hourly Dedicated Servers
  • Best Hardware For Machine Learning
  • Best 10Gbps Unmetered Dedicated Servers - Top 10 List
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801