How do you search a file in unix without knowing its directory?

Use the 'find' command. There are many different ways of searching, etc., so I suggest you take a look at the 'man find' or 'info find' commands to see all the different ways of doing the search.