• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Search files with case-insensitive names in Linux

Written by Rahul, Updated on December 13, 2020

find is the basic Unix command used to search files recursively under a directory tree. It is default available in all the Linux operating systems.

All the Linux command line users must be aware about uses of Linux find command. It The find command traverse under a directory tree and capable to search files or directory based on defined search pattern. It also provides option to search files with names in uppercase or lowercase or mixed case.

In this tutorial you will learn about how to search files with case insensitive names.

Find files with Case Insensitive Names

Use -name command line option followed by the file name under a directory tree. The below command will search all files with name backup.zip under the current directory and sub directories.

find . –name backup.zip 

The above command searches files in case sensitive names.

Use -iname option to search file names in any case. Here iname means insensitive names. The following command will match all patter like Backup.zip, BACKUP.ZIP, backup.Zip or BackUp.Zip etc.

find . –iname backup.zip 

The case insensitive means any letter of a file name cane be uppercase or lowercase. In this situation use find with option -iname to search all files matching files in any case.

Conclusion

In this quick tutorial, you have learned to find files with case insensitive names in Linux.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy