How to find a file in folders and subfolders in Unix

I am working with FreeBSD ec2 server for day time job. Is there a command to find a file named proud-config.py in given folders and all subfolders in Unix using ssh (putty.exe) and command line?

find command is all you need to search files

finding a file in folders and subfolders in Unix

Search for proud-config.py in /home/ directory as root user:

sudo find /home/ -name proud-config.py

We can do match in case insensitive mode:

sudo find /home/ -name proud-config.py
sudo find / -name proud-config.py

Print file name and other stuff in ls syntax:

sudo find / -name "proud-config.py" -ls

Ref: find command man page.

1 Like

Also check my guide:

1 Like

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki