ADB (Android Debug Bridge) is a command line tool that used to communicate with an emulator instance or connected Android device.
A large portion of this topic was split out to http://stackoverflow.com/documentation/android/9408/adb-shell
List of examples moved to http://stackoverflow.com/documentation/android/9408/adb-shell#t=201703130900469866621: