Untuk pencarian cepat (tetapi tidak definitif):
locate -br '^settings.xml$'
Dari 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.
The ^dan $memastikan bahwa hanya file yang namanya settings.xmldan tidak file yang namanya mengandung settings.xml akan dicetak.
Anda mungkin perlu menjalankan pertama kali: updatedb(as root) untuk memperbarui / membangun basis data locate.
ls, Anda hampir pasti melakukannya dengan cara yang salah .