Find all files in current (folder) directory and all subdirectories (subfolders) using the Linux/Unix Bash ‘find’ command

Problem: You want to find all files in the current directory, and all directories below it, using Bash.

Use this command syntax:

find . -name “AppServiceProvider.php”

Example:

[[email protected] bitcoin-spread]$ find . -name “AppServiceProvider.php”

./app/Providers/AppServiceProvider.php

Reference:

https://stackoverflow.com/questions/7715485/how-to-only-find-files-in-a-given-directory-and-ignore-subdirectories-using-bas

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top