Для быстрого поиска (но не окончательного):
locate -br '^settings.xml$'
От man locate:
locate reads one or more databases prepared by updatedb(8) and writes
file names matching at least one of the PATTERNs to standard output,
one per line.
-b, --basename
Match only the base name against the specified patterns. This
is the opposite of --wholename.
-r, --regexp REGEXP
Search for a basic regexp REGEXP. No PATTERNs are allowed if
this option is used, but this option can be specified multiple
times.
^И $гарантирует , что только файлы, имя settings.xmlи не файлы, имена которых содержат settings.xml будут напечатаны.
При первом запуске может потребоваться: updatedb(как root) обновить / построить базу данных locate.
ls, вы почти наверняка делаете это неправильно .