Adb shell ls

This command is used to list directory and directory contents

adb shell ls -a

Shows all files including the hidden ones

adb shell ls -a

adb shell ls -d

Will only show the directory names and not the contents

adb shell ls -d

adb shell ls -R /path/to/directory

Will recursively list the subdirectories of the specified directory

adb shell ls -R /mnt/sdcard/Download

adb shell ls -s

Prints the size of each file

adb shell ls -s

adb shell ls -lR | grep filename_you_want

Finds the location of the desired file

adb shell ls -lR | grep logo.png

adb shell ls /path/to/directory

adb shell ls /system/bin

how to image


Frequently Asked Questions


What is adb shell ls command?

It is a command to list the directories and its contents

Why is adb shell ls -IR | grep not working on Windows?

If the command is not working on Windows, try replacing grep with find. Example: adb shell ls -IR | find fileName

How to list all the files?

To list all the files, use the command adb shell ls -R /

Why is adb shell ls command used?

This command is used to list the directories and its contents.

rating-img
Rate this tool
NaN/5   0 votes