find / -name filename
rpm -qf filename/path ? but I have to know where the filename is located is there any other ways
rpm -qf path_obtained_from_above_command
A more faster method would be to use locate instead of find. However locate doesn't performs a search in real time but on an indexed database.
Also if its an command that you are searching for, then quickest way to determine file location is: