System
ADB Debugging
Package Manager
Logcat
Wireless
File Manager
ScreenShot
Network
logcat
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
Frequently Asked Questions
It is a command to list the directories and its contents
If the command is not working on Windows, try replacing grep with find. Example: adb shell ls -IR | find fileName
To list all the files, use the command adb shell ls -R /
This command is used to list the directories and its contents.