•  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
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
    • Status
  •  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
      • 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

  • 頂尖的開源雲存儲軟件
  • 用於服務器的最佳開源監控工具
  • sBlock - iSCSI Windows Guide
  • cVirtual Billing
  • Where to buy Juniper?
  • Unique Visitors
  • Supermicro Builder
  • Security: Email List Compromise
  • Secure Token Integration For PHP (Secondary)
  • Secure Token Integration For PHP
  • Rise of Just-In-Time Infrastructure
  • Install MySQL Centos 7
  • How to change cpanel password from WHM?
  • Docker remove all images
  • CentOS的7:“叫它RED HAT 7 LITE”
Copyright © 2026 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
  • Catalog
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • 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
  • Status
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