How to use ADB to list remote directories? I used adb push lol.png /storage/sdcard0/ to push a test file to my Galaxy S6, and the file was transferred successfully while failed to show up in my Android File Transfer. This is probably due to the fact that S6 doesn't have sdcard0 directory.

I like to remove the file I transferred (and the sdcard0 directory I accidentally created. But I don't know how to list remote directory via ADB. Is that possible? And How?
Easy to do – as in any Linux system:


Connect your device as usual
log into it using adb shell
use the ls command to list files in the current directory, and the cd command to change directories (i.e. walk the tree / navigate through directories)


For details on the commands, check for the corresponding Linux man pages – e.g. man ls and man cd.

Edit: If you're "afraid" of the command line, you can also use an ADB file manager (see here for examples).