Q. I have remove server. I login through SSH program. How do I find a file called xyz on my Linux server system?
A. You can use find command. It search for files in a directory hierarchy under Linux and all other UNIX like oses. Use find command to find a file from shell prompt.
Find command syntax
find Search-Directory-Path -name file-name-to-search
Examples
To find a file called zyz in /home/user directory type the command:
$ find /home/user -name xyz
To find a file called passwd in / (search entire system) directory type the command:
$ find / -name passwd
See this previous article for more info.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -
