The shell is a piece of software that provides an command-line interface to the operating system. Use this tag for shell-specific issues; general command-line issues should use the 'command-line' tag instead. See full tag wiki for other related tags.

learn more… | top users | synonyms

2
votes
2answers
918 views

copy folder structure from internal memory to sd-card

I use the amazon downloader to buy mp3s with my android device. My problem now is that I cannot change the download folder but want the files to be moved to my sdcard. I already found a cron tool to ...
4
votes
3answers
5k views

Broken Screen + Using adb shell to run vnc server

I have an HTC HD2 with a completely busted screen, I tried repairing it with a replacement screen but broke the ribbon cable to the screen (oops) sad day, I've got two of these and I've been running ...
1
vote
1answer
2k views

Shell utterly borked, toolbox claims “no such tool”

HTC Magic, rooted with CyanogenMod 5. Tried to install busybox using "Busybox Installer" from the Market, ended up with a strangely borked system. Android does not boot, freezes on the splash screen. ...
9
votes
1answer
4k 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" ...
0
votes
1answer
2k views

Android-adapted BusyBox binary for rooted phone

I would like to place a place BusyBox on my rooted Android phone, and I would like to have a version that has "sh" as an alias for "ash" so that I can replace the standard /system/bin/sh with a ...
8
votes
6answers
4k views

How to prevent adb shell from exiting upon Ctrl+C

When I adb shell into my device (from Windows desktop), and run some command there, sometimes I want to terminate that command. The standard unixy way to do it is with Ctrl+C key combination. However, ...
6
votes
1answer
2k views

Is there a way to list the local dns cache?

I would like to get a list of my current cache on my phone, what is the command to issue in order to retrieve that list ? I would like to get a command and not an app that does that, since i want to ...
3
votes
1answer
2k views

How to access a linux shell from my phone via bluetooth?

Basically I want to send shell commands from my phone to my PC (Ubuntu 11.10) via bluetooth. Why? Because I don't always have WLAN and WLAN on my phone sucks. All possible solutions are welcome. I ...
3
votes
1answer
939 views

I want to execute shell commands on my pc from my android via USB

I have a linux box, without any network interface, only usb. I have my andorid phone, and the USB cable. I would like to connect from my android device to the linux box,and execute shell commands on ...
14
votes
4answers
31k views

How can I flush the DNS Cache?

How can I clear my DNS cache on my android phone? (Droid3, Gingerbread, rooted to be specific) Ideally I'm looking for a command to run through a terminal emulator, something similar to ipconfig ...
0
votes
1answer
139 views

My Optimus X2 was missing its custom android

While I was waiting for my new LJ Optimus X2 (P999) mobile I watched a couple of youtube reviews and it always came with extra features to android. But my phone is pretty much vanila android. Is it ...
15
votes
2answers
18k views

What useful Android Shell commands do you know? [closed]

There are questions pertaining to the use of the Android Shell or to finding a documentation of the Shell commands on Android. Since I haven't found anything convenient, I would like to use this ...
11
votes
1answer
4k 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 ...
5
votes
2answers
3k views

Read APK permission by shell command

I want to read the requested permissions of an .apk file on the computer (android sdk is installed) via command line. I.E.: $ android read-permissions /path/to/someapp.apk I know this is possible, ...
2
votes
3answers
2k views

How can I zip a folder into a zip file in Android to send over the Internet?

I have root, and I tried running the zip command from shell, but zip is not found. I think Android doesn't come with zip. How can I install zip on Android?
4
votes
3answers
3k views

Can I connect to a shell from a PC to my Android using bluetooth or USB?

I want to run some commands on my rooted android phone. It is not very practical to interact with a shell using the touch screen, therefore I wanted to run a daemon on it and connect to it from a PC. ...
22
votes
3answers
48k views

How can I run a script on boot?

I'm accustomed to running scripts on boot in Linux, but I'm not sure how to do this in Android. I'd like to start my SSH daemon on start, so I'll always be able to connect. How can I run an arbitrary ...
3
votes
2answers
4k views

Can i mount loopdevice in Android?

I have rooted my android phone and get a shell thr adb. I wanna mount a ROM image in android. But I always fail: mount -o loop /sdcard/myimage.img /mnt mount: can't setup loop device: No such file or ...
3
votes
2answers
3k views

How to mount a ext2 partition in sdcard

I don't want to use fat32, I want use the more stable ext2.
2
votes
2answers
7k views

How to delete the history and cache in Opera Mobile (10.1) via shell?

I run Opera Mobile 10.1 on Android. My device is rooted. How can I clear the history and cache of the browser via shell? As su, removing ...
9
votes
1answer
3k views

How is the default PATH set?

On another linux system I might expect to find a .profile file, or something in /etc used by default. I'm unable to determine what sets the system path for processes not running in a shell.
28
votes
4answers
108k views

Where in the file system are applications installed?

I have installed a few Android applications both with the adb install MyApplication.apk command and via a webserver (like an alternative to Android Market). But where in the Android file system on my ...
10
votes
5answers
13k views

Where can I find documentation for shell commands?

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 ...
18
votes
4answers
1k views

How can I use shell commands and interact with the Linux system underneath?

Android is based on Linux and has a Linux kernel underneath. Is there any way I can use shell commands and interact directly with the Linux system? E.g. A shell app that has access to the Linux ...