How do I use the 'find' command on ADB to search the entire android file tree on a rooted device, including sub directories, for any filenames containing the word 'prop' ?

  • fHave you tried find . -name "*prop*"? Apr 3, 2021 at 11:39
  • dang, its simple only when you know, Thank you! (used through SU shell). Anyway to output that to a text file? actually copy/paste works too lol
    – Mamba76
    Apr 3, 2021 at 11:45

1 Answer 1



find . -name "*prop*"
  • .: represents the current folder.
  • -name: option to find files by name.
  • *prop*: filenames that contain the word prop.

OR as mentioned by @alexs on the comment, you can use:

find . -iname "*prop*"
-iname: option to find files by name but is case insensitive.

If you want to find the all files with the root folder as the stating place, do as mentioned by @IrfanLatif by using:

find / -iname "*prop*"
  • 1
    Better use root directory explicitly (find /) instead of current/working dir which might not always be root dir, though by default ADB's cdir is root dir. Even better do find /{data,system,vendor,prodct,odm}/ to avoid going through pseudo filesystems unnecessarily. Apr 3, 2021 at 12:08
  • Great thanks. Id be greatful if anyone would view my XDA thread and give their 2 cents. Ill be creating this later and will post the link here in comments (if thats allowed?). Its about altering volume steps on a Lenovo M8 FHD tab (MediaTek) which Im using to replace the popular Nexus 7 (2013) for car audio head unit. Its the only tab that is exact same length as the nexus and much better spec than a galaxyTab A. Im sure the lenovo could catch on for this purpose if not for the volume problem.
    – Mamba76
    Apr 3, 2021 at 13:54
  • forum.xda-developers.com/t/…
    – Mamba76
    Apr 3, 2021 at 23:32
  • @Mamba76 if the answer has resolved your issue, you can mark it as accepted. See What should I do when someone answers my question. Apr 4, 2021 at 6:57
  • sorry, iv learnt something new. accepted
    – Mamba76
    Apr 4, 2021 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .