Questions tagged [command-line]

A "command line" is a text interface to enter commands interactively. In our context, it usually means a "Unix Shell" in a terminal app, or the ADB shell on a computer to interact with an Android device.

What does 'command line' stand for?

To interactively enter system commands, Android offers a command line interface, in short "CLI". This can be accessed either directly on the device using a terminal app such as e.g. Android Terminal Emulator, or from a computer using ADB's adb shell command.

Terminal Emulator
Running a terminal emulator on the Android device (Source: Google Play)

Where should I use this tag?

Obviously, when your concern is to directly execute commands on the command line on your Android device (directly or remotely).

What is not covered by this tag?

Again quite obvious (if you've read our FAQ): Development issues are off topic at our site. So if your question is development orientated, don't use this tag -- don't even post that question ;)

Related tags

  • : about e.g. execute shell commands via adb shell
  • : about scripting of shell commands
  • : shell-specific issues
  • : using a terminal app to access the command line

Sources

237 questions
13
votes
2 answers

Command to list partitions?

I want to list the partitions on my phone - system, boot, recovery etc. What terminal command should I use? The mount command just lists mount points.
Liam W
  • 8,436
  • 11
  • 40
  • 67
2
votes
1 answer

Linux command 'w' - how is this as command written in Android shell?

I am searching for similiar commands in Android shell - as they are used in Linux like these commands - what can I type in Android terminal for : w who whoami ? Thank you.
dschinn1001
  • 131
  • 1
  • 6
2
votes
1 answer

Backup boot.img via terminal one-line command

I am trying to make an image backup of boot. The script must work on any android. I think on any Android the boot location is /dev/block/platform/???/by-name/boot My command line find /dev/block/platform -name boot -exec dd={} of=/sdcard/boot.img…
user191256
1
vote
1 answer

How to fix "Socket creation in UltraProbe...Permission denied" error when using nmap?

I have a pre-compiled nmap binary for Android that was working properly and without error in LineageOS 14.1. The phone is a One Plus One. Since upgrading to Lineage 15.1 (Android 8), the specific error I get is: Socket creation in UltraProbe*…
0
votes
1 answer

How to run GNU utilities without root?

Is there any way to use GNU utilities like GNU's sed, find, bash, and awk WITHOUT root? Android's utilities that are provided by toolbox and the BusyBox applets provided by one particular application I have installed lack the kind of features…
Melab
  • 785
  • 4
  • 13
  • 23
0
votes
0 answers

sending AT command with NCK code unlock sim?

I need information. How can I send the NCK unlock code network using AT commands? Or is there any other ways?
user191256
0
votes
2 answers

Using command-line to boot into primary and secondary ROM of MultiROM

I've a OnePlus One with unlocked bootloader, modified TWRP v2.8.6, unofficial MultiROM v32k, MultiROM Manager v1.186, Cyanogen OS 12 as primary and several Android 5.1 secondary ROMs. I don't have any non-Android secondary ROM. I created a Android…
Firelord
  • 25,084
  • 20
  • 124
  • 286
-3
votes
1 answer

Can I use Linux commands on Android?

Android is a kind of Linux. So I would be able to use the commands. Can I use Linux commands on Android? If I can, how do I?
ra1ned
  • 103
  • 8