Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [terminal]

A terminal app is the way of providing a command prompt to Android devices.

Filter by
Sorted by
Tagged with
32
votes
11answers
211k views

How to get hardware specs of Android device?

How can I find information on the hardware of my Android device like processor architecture, RAM, etc?
18
votes
7answers
27k views

Where can I find documentation for shell commands? [closed]

For using a shell commands through a terminal program, where can I find documentation or help or man pages for the commands as implemented in Android? While it would be nice to have them on the ...
17
votes
3answers
53k views

No permissions for Termux to access internal storage - even for reading

Using the termux (https://termux.com) terminal-emulation program, I type the following command: ls /sdcard I get the following error: ls: can't open '/sdcard': Permission denied Realizing that the ...
16
votes
3answers
48k views

terminal on real android device from PC

I want to run terminal on my device however the small screen is very inconvenient. I wondering if it is possible to run terminal on real android device from PC?
16
votes
4answers
78k views

How can I execute command in the terminal as root?

How can I get root permissions in a terminal?
16
votes
9answers
16k views

Where can I obtain an SQLite 3 command line binary for Android?

When I read documentation such as examining SQLite 3 databases from a remote shell I get the impression an SQLite command-line binary should exist on my phone. Sadly I can't seem to find it on my ...
15
votes
2answers
57k views

Termux - How do I create a directory of files accessible outside of Termux?

I discovered that the files and directory that are created in (default) Termux, are not accessible to other apps on non-rooted phones. Where is the folder that Termux defaults to? How do I set it ...
14
votes
3answers
49k views

Equivalent of CTRL + C (break) in android console

Recently I discovered, that via QPython console I can execute android (linux) commands. Ping works. Question is: how to interrupt it's output on smartphone? CTRL + C obviously isn't the answer.
14
votes
1answer
9k views

Start an Android application via a shell script?

Is it possible to start an actual Android application from the command line in Android? For example, say I'd simply like to start/bring to the front my calendar. Is there a way that I can do this like:...
13
votes
2answers
40k views

Running own executable on Android shell

I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system ...
13
votes
2answers
15k views

how to run a specific app's action via terminal?

I need to run my android app from a remote computer via SSH, but I'm not a command-line expert, so I would like to know: how to run a specific action of an app? (not just open it) Which implies: how ...
13
votes
6answers
42k views

Android terminal not able to nslookup?

Every time I try to telnet to a domain on my LG Ally it fails, but it works if I use an IP address. So I tried to use nslookup telehack.com and it returns: Server: 0.0.0.0 Address 1: 0.0.0.0 ...
12
votes
3answers
22k views

How to return to the home screen with a terminal command?

Is there a terminal command to go to the home screen? I need to do this via ssh, so I cannot just push the "home" button, I need to send a command-line action..
12
votes
3answers
35k views

Is it possible to enable Location Services via Shell?

Is it possible to enable Location Services(GPS or Google NetworkLocation) via ADB or Terminal Emulator? I'm on a rooted Phone. Extra Points: Is it also possible to change other system-related ...
12
votes
2answers
45k views

Starting an activity listed under “Settings” from terminal (or adb shell)

I would like to start this activity from terminal: com.android.settings.Settings$PowerUsageSummaryActivity I tried am start -S com.android.settings/.Settings$PowerUsageSummaryActivity and this is ...
12
votes
6answers
63k views

A Real Terminal (Root or No-Root)

I use KUBUNTU on my laptop, but this goes for any Linux distro. I can open a terminal window and type in things like sudo apt-get update, sudo apt-get install packagename. Is there a terminal that can ...
12
votes
2answers
12k views

Rooted phone - sending SMS message via command line

I have a rooted Droid (Sholes), with ConnectBot installed. I can ssh into it via dropbear copied to /system/xbin, and/or also the instance of Debian installed on it via the "Linux Installer" ...
10
votes
3answers
61k views

I'd like to run Termux as root: possible?

I'd like to have an SSH, HTTP and SMB server on standard ports on my phone. There's a way to run Termux as root and have the servers run on privileged ports? Running rooted Android 7.1 on an ...
9
votes
7answers
25k views

Does access to logcat need root?

My device is already rooted, this is why I'm asking. Do you need root to monitor the logcat stream on the phone? If I ran the logcat command from within a Terminal on the phone, would that work?
9
votes
4answers
10k views

Accessing termux user environment from other consoles

I've recently started using the amazing Termux terminal app and linux environment. It provides a wealth of full-function terminal utilities. It would be great to be able to access these utilities ...
9
votes
3answers
8k views

How to access and modify previous commands (bash history) in Termux

I use Termux on my Fairphone 2 and I want to speed up working with it. What slows me down is not having an up arrow key that I can use to access the last command in my bash history. I can do !! !7 and ...
8
votes
5answers
29k views

Can I restart Bluetooth from the terminal?

I have a rooted Galaxy S 2 (I9100) and was wondering if I can restart the Bluetooth on my phone via the terminal client on my phone.
8
votes
4answers
12k views

Running applications from a terminal emulator [closed]

I have a rooted Nexus 7 Jelly Bean tablet and whenever I attempt to run an application from a terminal emulator app after chmod 777ing it and using the syntax ("./applicationName") it insists that I ...
7
votes
1answer
3k views

Terminal emulator's ssh trying to read /data/.ssh instead of $HOME/.ssh

When I try using Terminal emulator's ssh I get ssh: Warning: failed creating /data/.ssh: Permission denied. or since 2012-08-19: Could not create directory '/data/ssh_client'. But when I type: ...
6
votes
4answers
35k views

How use Escape, directional keys on the virtual keyboard?

I recently bought Better Terminal Emulator Pro, and I like it, but how do I use the Escape key and directional keys? For instance, I'd like to switch between modes in vi or use the up and down arrows ...
6
votes
3answers
3k views

Fastboot freezes on Mac OS Sierra

I just got a new MacBook 2016 with Mac OS Sierra installed, after setting up my complete development environment and all required tools via Android Studio, I tried to flash a new Android Wear release ...
6
votes
2answers
1k views

Rootless CLI Utilities

Do I have to root my android device to install command line utilities? I would really like to run Vim, among other programs on my phone. I have no reason not to root my phone, I just want to know if ...
6
votes
1answer
15k views

How to check my phone hardware specs on Android terminal emulator

I was wondering if there is a command to check the hardware specs of my phone. I just installed the Android terminal emulator. I've tried the 'lshw' but it does not work. Thanks in advance.
6
votes
2answers
2k views

Associating a particular input method with a specific app

Is there a way to associate a particular input method with a specific app? For example, I'd like to always use the Hacker's Keyboard with the Terminal Emulator, while using SwiftKey for most other ...
5
votes
1answer
32k views

Run adb command inside the terminal emulator or programmatically without root

Is there a way to run theadb backupcommand on the device itself without using a ᴘᴄ computer ? Of course when I try to do it,adbcomplains the daemon isn’t started and it fails to find a device. ...
5
votes
3answers
13k views

Run downloaded shell command without root?

My phone is a Galaxy S3, not rooted. I have "ES File Explorer" and "Terminal Emulator" installed. I downloaded an Android build of 'wget', intending to execute it from the Terminal Emulator app. ...
5
votes
1answer
14k views

Terminal or ADB command to force-stop applications

What is the terminal or adb command to force-stop an application? Like for freezing we use pm disable application_name.
5
votes
2answers
22k views

How do i open a text file from a terminal window from within the android gui

I'm trying to open a text file from within a terminal window emulator -- but not so it opens in the actual terminal but more like I've just clicked on it. So my question is: What command can I use to ...
5
votes
1answer
973 views

How to write android shell history to file

Using Terminal Emulator for Android, is there a way to enable a persistent command history? So far, I've tried the following: initial command of export HISTFILE=$HOME/.mksh_history user mksh profile ...
5
votes
2answers
29k views

Compiling and running java applications from android terminal? [closed]

I recently got a bluetooth keyboard for my Motorola Xoom tablet, and upon realizing that BusyBox comes with vi for text editing I started wondering about writing and executing code on android. I ...
4
votes
1answer
12k views

How to run commands as root in Connectbot?

My phone is rooted CM7 and Superuser.apk has Connectbot in the allowed list. Titanium backup reports that it has root access, to prove that I actually have root working. I seem to remember being ...
4
votes
4answers
24k views

Allow “unknown sources” from Terminal without going to Settings App?

I have a corrupted Settings app in CyanogenMod and have a possible idea to restore a backup of it (App and Data) in Titanium Backup. But it's currently set to not allow "unknown sources" so Titanium ...
4
votes
1answer
5k views

How to get battery status in terminal?

I have gingerbread(2.3.6) phone with dropbear installed. I usually access my phone over wifi & run commands in putty. I want to get Battery status & percentage in terminal. Is there any ...
4
votes
1answer
9k views

How to give root access to apps that don't request it?

I've been using the app SystemPanel for some time now to archive my Android apps. It works great, but it cannot archive apps that have been installed under /data/app-private, because this directory ...
4
votes
1answer
3k views

Package manager for android terminal

Just wanted to ask whether there was a package manager which could be installed on android terminal like homebrew cask, macports (macOS). PS Just wanted to install small application like wget and curl....
4
votes
4answers
16k views

Send files from Linux to Android via ssh

I want to send some specific files from my linux PC to my android device. I'd like to send it automatically using terminal commands, so there will be no drag and drop files. I don't know what is the ...
4
votes
2answers
6k views

type “adb shell su” in terminal (cmd in win or console in Linux ) let the terminal hang [closed]

I just want to input more shell commands after typing adb shell su, but the terminal just return an "#". It appears to be unresponsive to further commands. How can I solve this problem? Recompile ...
4
votes
4answers
16k views

How to see other partitions using the Terminal Emulator and mount them?

I just installed Android on my netbook and it caused it to not see Linux Mint on my machine and I'm assuming it removed it from the GRUB. Now the first problem is how do I see the contents of my ...
3
votes
3answers
30k views

Booting into recovery from terminal [duplicate]

How can I boot into the recovery from terminal? I'm using LG p970/CM10/cwm5
3
votes
3answers
4k views

which termux package provides the “mount” command?

i try to install "mount" with apt, but i can't locate it, or a package that contains "mount". i've tried: just to run mount: no command 'mount' found apt update && apt upgrade apt ...
3
votes
2answers
4k views

adb device always unauthorized

Im running Ubuntu 16.04 adb version Android Debug Bridge version 1.0.32 However, when I plug in my devices for testing via ADB I always get an unauthorized error. adb devices List of devices ...
3
votes
3answers
7k views

How to install bundles of additional terminal commands for rooted devices?

I rooted a HTC Wildfire S device recently and flashed an Android 4.1.2 AOKP Jelly Bean Custom ROM. One benefit is that I can use the terminal now. I'm a little used to using terminal emulators on ...
3
votes
1answer
15k views

Android shell script permissions? [duplicate]

I have a rooted phone, and I was playing around with Terminal Emulator. I tried writing a simple shell script (test.sh) : #!/bin/sh echo "Hello, World!" Then I opened terminal emulator, cd'd to the ...
3
votes
1answer
3k views

Is there a way to launch app via terminal in the background?

Is there a command to launch an app via terminal and have it start in the background? Something like the "&" in Linux...
3
votes
1answer
2k views

Real root can not change any thing on /system original files!

On my rooted device running Android 4.2.2, I have following tools installed: Terminal Emulator BusyBox Free On Terminal Emulator, su command successfully changes user to a real root: root@hwH30-U10:...