The find command allows you to search a specific file by its name. You can use the find command with -name option followed by the file name that you want to search.
For example, to search a file named file1.txt in the /etc directory, run the following command:
If you want to ignore the case during the file search, use the -i option as shown below:
find /etc -type f -iname file1.txt
You can use the following option if you want to search for a specific file type:
f – regular file
d – directory
l – symbolic link
c – character devices
b – block devices