Breaking
March 24, 2026

10 Android terminal commands every smartphone owner should know | usagoldmines.com

The typical person does not usually use terminal instructions to work together with their cellphone. It’d seem to be it is too sophisticated or takes an excessive amount of work to be taught, however there are a couple of helpful and straightforward terminal instructions. Android and your pc talk via the Android Debug Bridge (ADB). It really works on Home windows, macOS, Linux, and even budget Chromebooks. ADB is a robust device, and we present you learn how to use it with terminal instructions to do issues like set up apps and customized ROMs.

Earlier than you start

Earlier than utilizing ABD, go to the Android developer’s web site to get the SDK (Software program Improvement Equipment) instruments you will must get began, and turn on Android Developer Options in your settings. We cowl the whole lot you must know in our ADB set up information. It solely takes 5 to 10 minutes till you may open a terminal and take a look at these instructions.

You should use the adb –help command to see all of the command choices for ADB.

10

Provoke communication

Two easy instructions to begin and cease ADB

After connecting your cellphone to your pc, you may inform it you are able to ship instructions with the adb start-server command. Whenever you’re completed or wish to disconnect to check one thing, adb kill-server stops the communication bridge.

9

Ensure you’re linked

The best means to ensure ADB is prepared

If ADB is up and working, sort adb units and press Enter to return a string of numbers and the phrase gadget. The string of numbers is your gadget’s distinctive serial quantity. Whereas most of us solely join to 1 gadget at a time, if in case you have a number of telephones plugged in, the quantity is the way you inform them aside.

Utilizing the command adb units -l provides you extra details about your Android cellphone, together with the product identify and mannequin. Many telephones are launched with completely different variants. This helps you slim it down in the event you use ABD to flash a customized ROM.

Should you’re within the bootloader, which is the place you will set up customized ROMS, unlock your gadget, and carry out different low-level system operations, use fastboot units as an alternative of adb units to be sure to’re linked.

In Command Immediate, make your font greater on Home windows by right-clicking the upper-left nook of the window, selecting Properties, deciding on the Font tab, and selecting your Measurement. Should you use a macOS Terminal, press Command and + till you attain the scale you need.

8

Reboot to completely different areas

You may reboot into the bootloader or restoration mode

If you find yourself completed utilizing ADB, you may reboot your cellphone as you usually would, utilizing the adb reboot command. You may as well reboot into restoration (adb reboot restoration), fastboot (adb reboot fastboot), or the bootloader (adb reboot-bootloader) with their instructions.

7

Root superuser privileges

Superior Android instructions require elevated privileges

You may want heightened permissions to entry particular areas of your working system or storage. These instructions solely work if in case you have a rooted gadget. Whenever you wish to carry out superior operations, adb root restarts the Android Debugging Bridge in the identical means you employ abd kill-server and adb start-server, however it begins with root privileges activated. If you wish to return to being a traditional person, use the adb unroot command.

6

Ship recordsdata to or get recordsdata out of your gadget

Push or pull recordsdata with the command line

You may work together with the storage in your gadget within the command immediate utilizing these ADB instructions.

To push (ship) recordsdata, use adb push [local file location] [device file location]

To tug (obtain) recordsdata, use adb pull [device file location] [local file location]

This is a easy instance you may attempt. Substitute the file paths with your personal. Create a fundamental textual content file (.txt), write one thing in it, and put it aside as file.txt.

adb push /path/to/native/file.txt /sdcard/file.txt

Now, use your cellphone as you usually would to verify in case your textual content file is in your SD card. To check getting that file again out of your cellphone, use:

adb pull /sdcard/file.txt /path/to/native/file.txt

The principle profit over shifting recordsdata the way in which you usually would is you could copy recordsdata to or extract recordsdata from restricted areas (file system or app information directories) so long as you may have root entry.

5

Set up or uninstall apps

That is the way you sideload an app

Sideloading installs issues straight, like apps with their .apk recordsdata, utilizing ADB or different strategies exterior an official app retailer. This may be complicated as a result of there’s an adb sideload command that we cowl later. That command is not used to sideload apps. You may use adb set up as an alternative.

This is the syntax for the 2 instructions:

To put in recordsdata, use adb set up [path/to/app_name.apk]

To uninstall recordsdata, use adb uninstall [app_name.apk]

When utilizing adb set up, use your native file listing the place you saved your .apk (with out the brackets). When utilizing adb uninstall, use the identify of your .apk app file.

4

Troubleshoot points (debugging)

ADB is an effective way to troubleshoot issues

Logcat returns real-time logs from an Android gadget, together with system messages, error studies, logs for particular apps, and different info you should utilize to diagnose an issue. There are a number of choices for this command you could lookup if you’re prepared to make use of it.

The command terminal in your pc returns a restricted variety of strains. To check this, we’ll ship an output file with the logcat info to your pc. The -d within the command tells it to ship the knowledge as it’s and discontinue monitoring after the command. The file location works the identical as the opposite examples we have given. Substitute the trail with out the brackets.

adb logcat -d > [path/to/logcat_output.txt]

Should you do not use -d and solely use adb logcat, you get a steady working output in your command terminal. If you wish to give it a attempt to see what occurs, use Management + C to exit out of it, on each Mac and Home windows.

3

Superior debugging

Get much more debugging data

Dumpsys will get info on completely different system providers in your gadget. You may check out the complete log in the identical means we used logcat, and ship the output file to your pc.

adb shell dumpsys > [path/to/dumpsys_output.txt]

There are a number of choices for dumpsys, and you may goal particular issues like adb shell dumpsys battery or adb shell dumpsys wifi.

2

Use Linux instructions

Get entry to the Android OS and its file system

We used our first ADB shell command with dumpsys. The adb shell command opens a command-line interface (CLI) or “shell” in your Android gadget or Android emulator. You may take a look at it with the easy record (ls) command above, which returns an inventory of instructions which can be obtainable within the system listing /system/bin.

adb shell ls /system/bin/

You should use a number of Linux instructions with adb shell you could’t use with ADB alone. That is moving into superior person instructions. You are able to do issues like make a listing (mkdir), filter log outputs (grep), verify community statistics (netstat), and see what’s in your present working listing (pwd).

1

Manually set up firmware

Set up customized ROMs and OTA updates

Let’s finish with one of many essential causes folks use the Android Debug Bridge: putting in customized ROMs or OTA updates. The abd sideload command installs .zip recordsdata of your firmware, whether or not it is an official model to your gadget or a customized ROM like LineageOS.

adb sideload name_of_file.zip

Do not do this with out following the directions for the firmware you wish to set up. Putting in firmware manually can brick your gadget in the event you do it flawed.

Develop into an Android energy person

ADB is a robust device, and there is a lot you are able to do with it. Customized firmware can carry new life to an previous cellphone, with a extra present Android model than the producer helps. Do you know you may set up Android 14 on an previous Samsung Galaxy S9 with the LineageOS ROM? Beginning with the fundamentals is an effective way to get used to instruments which can be new to you.