[Q] mimic find with ls on Android linux (Moto G smartphone)

46 posts
Thanks Meter: 0
By my1stSmartPhone, Member on 3rd January 2015, 01:39 AM
Post Reply Subscribe to Thread Email Thread
I'm becoming familiar with Android linux on the Moto G. There is no find command. Is there a set of options for ls that will recursively show all files and directories, one per line? Note that there is no man command, nor does ls respond to the --help switch. It responds to -R for recursion, but not -1 for one item per line (not that it would solve the problem, as it does not prepend the dirname of the path). Note also that the shell is sh rather than bash, and I am using an app commonly known as adb to remotely shell into the Android OS (over a USB connection).

Here are some details from the phone:
* Android 4.4.4
* Kernel version 3.4.42-g67b2f25
* System version 210.12.50.falcon_umts.Telus.en.CA
* Build number KXB21.14-L1.50
Post Reply Subscribe to Thread

android, shell commands

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes