Find a file on the Android while in terminal or adb

Posted on December 29, 2011 by admin.
Categories: Android tips and tricks.

find /data -iname “myfile*.txt”

This will look in the /data partition for the files myfile1.txt, Myfile2.txt, etc.

The -iname makes the search case insensitive, which is what windows people are used to, whereas linux people can have two different files with the same name in the same directory! (different case)

Also note that Linux default sort on the Android makes the capital letter directories (folders) in front of the lowercase ones.

So Myfiles directory will not be next to myfiles2 directory!

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>