Android devices provide a Unix shell that you can use to run a variety of commands on the device. The command binaries are stored in the file system the device.