Method: Use: find command.
For example, I think the location search nginx.conf file is located, just write:
find / -name nginx.conf
note:
1. "/" indicates to start the search from the root directory;
2. "-name" mean to come back is the file name of the target file;
3. The value returned by the search path of the file is located