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

  • Home
  • Client
  • Qa Forum
  • Linux Find Commands

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

Can someone tell me how to use Linux find command to find a file by name, extension?

Psychz - Girish

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

Hi!

Among the plethora of Linux commands, the "find" command is one of the most versatile ones. The "find" command is used to search files and directories for a string. There are numerous variations of this command. Some of them are discussed below.


To search files and text in the directories 

To search all the directories for a file.

 

“find / -iname ” 

 

To search all directories for specific text.

 

“find / -iname ” 

 

To search file with the help of extensions.

find . -type f -name "*.txt"

 

(Note: You can use the following options with the "find" command to further fine tune your search.)

 

"/" - Use this option to search all the directories.
"/directory_path" - To search the specified directory.
"." - To search the current directory.
"-iname" - Use this option for searches not to be case sensitive.
"-iname" - Use this option for case sensitive searches.
 
"-type f" - To search files.
"-type d" - To search directories.

Was this reply helpful?

Related topics

  • How to find a file using find and locate command on Linux?
  • Basic and useful Linux commands
  • Linux Command for Find Directory
  • Hosting With Root Access
  • How much is 1U Rack Space?
  • Linux Dedicated Server Hosting
  • Firewalld commands for CentOS 7 and CentOS 8
  • Scientific Linux and its features
  • What Scientific Linux is and its features
  • How to setup a Dedicated Server for Terraria
  • Managing systemd services and units using systemctl commands
  • Quagga Routing - Install, Configure and setup BGP
  • Deploy Psychz Dedicated Server Using Terraform Provider
  • BBR : A new way to increase Internet speed
  • Top Useful Features Of Linux Mint
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