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:
https://www.cyberciti.biz/faq/unix-command-to-find-a-file-in-a-directory-and-subdirectory/
1 Like