•  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

Các lệnh tìm kiếm Linux

  • Home
  • Client
  • Qa Forum
  • Các lệnh tìm kiếm Linux

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

Ai đó có thể cho tôi biết làm thế nào để sử dụng Linux tìm lệnh để tìm một tập tin theo tên, phần mở rộng?

Psychz - Girish

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

Chào!

Trong số rất nhiều lệnh Linux, lệnh "find" là một trong những lệnh linh hoạt nhất. Lệnh "tìm" được sử dụng để tìm kiếm tệp và thư mục cho một chuỗi. Có rất nhiều biến thể của lệnh này. Một số trong số chúng được thảo luận dưới đây.


Để tìm kiếm các tập tin và văn bản trong các thư mục

Để tìm kiếm tất cả các thư mục cho một tập tin.

"Tìm / -iname "

Để tìm kiếm tất cả các thư mục cho văn bản cụ thể.

"Tìm / -iname "

Để tìm kiếm tập tin với sự trợ giúp của phần mở rộng.

tìm thấy . -type f -name "* .txt"

(Lưu ý: Bạn có thể sử dụng các tùy chọn sau với lệnh "find" để điều chỉnh tốt hơn tìm kiếm của bạn.)

"/" - Sử dụng tùy chọn này để tìm kiếm tất cả các thư mục.
"/ Directory_path" - Để tìm kiếm thư mục chỉ định.
"." - Để tìm kiếm thư mục hiện tại.
"-iname" - Sử dụng tùy chọn này để tìm kiếm không phân biệt chữ hoa chữ thường.
"-iname" - Sử dụng tùy chọn này cho các tìm kiếm nhạy cảm.

"-type f" - Để tìm kiếm tệp.
"-type d" - Để tìm kiếm thư mục.

Was this reply helpful?

Related topics

  • Máy chủ Linux chuyên dụng Hosting
  • Các giải pháp dành cho Linux và Windows
  • History of Internet
  • Managed Linux Hosting
  • Làm thế nào để tìm thấy một tập tin sử dụng tìm kiếm và xác định vị trí lệnh trên Linux?
  • Linux Antivirus Software
  • cVirtual Connect from Windows
  • sBlock - iSCSI Linux Guide
  • Deploy Psychz Dedicated Server Using Terraform Provider
  • Linux File Permissions Cheat Sheet
  • How To Remotely Connect To Windows Server?
  • Các tính năng hữu ích Top Of Linux Mint
  • Khoa học Linux và các tính năng của nó
  • Lên trên thần thoại về Linux Security
  • Có gì Scientific Linux là gì và tính năng của nó
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