find /tmp -name "*.py"
The example above is using the find command to search files in the tmp
folder for Python
files, that have the extension .py
.
To get a list of all the files with the same extension inside the current directory, for this example looking for all the Python extension files.
find . -type f -name "*.py"
In the above example the .
denotes for the current directory. find
searches recursively in all the directories below the given path