javax4u / customer-meetings

2 stars 0 forks source link

How to Search for Files from the Linux Command Line #123

Open apoorvpandey-ap opened 1 year ago

apoorvpandey-ap commented 1 year ago

Link - https://www.linuxfoundation.org/blog/blog/classic-sysadmin-how-to-search-for-files-from-the-linux-command-line

find -name 'FileName'

We can use the same option to help us look for configuration files. Say, for instance, you want to locate all regular files that end in the .conf extension. This command would look something like:

find / -type f -name "*.conf" The above command would traverse the entire directory structure to locate all regular files ending in .conf. If you know most of your configuration files are housed in /etc, you could specify that like so:

find /etc -type f -name “*.conf”