How to locate a path?
If you are unable to find the file with the below command then try updatedb
for updating db used by locate command.
locate -r foot/bar/
or
# locate "/*/bar/avi"
/foot/bar/avi
find command can also do this
find / -path */foot/bar*
find /
will search the whole system starting from /
using find
command,
find . -ipath "*foo/bar*"
or if you prefer regex syntax then you can use,
find . -iregex ".*foo/bar.*"