If you know the name of your file but you are unsure of the file’s location, you can use the locate command to get the file’s path.
The locate command searches for a file location in a prebuilt file database, and thus it’s crucial to update the file database before using the locate command. If you don’t update the database, the locate command may fail to retrieve the location of newly created files.