How Do I find a file in Linux operating systems?
You need to use the find command to search for files in a directory hierarchy under Linux operating systems.
find Command Syntax
Open the terminal and type the following commands:
find /dir/to/search -name filename
OR
find /dir/to/search -iname "*.txt"
For example, search a file called foo.c in /home/projects directory, enter:
find /home/projects -name "foo.c"
To find all *.sh file, enter:
find /home/projects -name "*.sh"
To match uppercase and lowercase version of foo.c or FOO.c, enter:
find /home/projects -iname "foo.c"
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 0 comments… add one now }