Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How interested are you in using the terminal on a semi-regular basis? Your best bet is to just google unix/linux commands, as most of them will work (almost) exactly the same in Android, assuming you have busybox installed. For an even better (much more usable) experience, you'll want to use bash, as well. What ROM are you using? Some of them already have it. If not, it's easy enough to get. If you're interested in doing that, I can show you how to set it up with a bashrc file. Once you do that, you'll be all set to start using the command line in a much more usable way. From there, you'll want to learn the basic commands for getting around (ls, less, etc.) and file manipulation (cp, mv, etc.). You'll probably want to learn how to use wildcards and how to work with I/O redirection. All of this can be found in most of the basic command line tutorials, which you can easily find if you search for them. Here is one, for example. There are hundreds more out there, I'm sure. Once you learn the basics, you can feel free to PM me any time you want more information, or want to know something a little more specific. If you want to have some real fun, set up ssh, and type commands from your computer (you can do it with adb shell, too). Once you get more comfortable with it, you'll find that you can do some things way faster than you can with any app (or gui, in general).

Lol use ssh for some real fun...nerd![]()
)Shut up (I mean that in the nicest way)
I figure he wouldn't be asking if he didn't want to have fun...or am I really that much of a nerd?

Can you help me figure why I can't execute any jar files on this xp pos?
Lol, is that a serious question?
Lol sort of...I was trying to use the other laptop today...fail...
Yeah, I hear ya. What were you trying to run, and how were you trying to run it?
It's so hard once you get a system set up to use a diff one lol. I down loaded so much stuff and all for not...I wanted to modify a .dex using smali in sdk. I can't execute any jar files though even with a command prompt. The file ass. Is correct...I dunno I just half care at this point lol
Yeah, I know exactly what you mean. I hate working with java.


haha..you guys are hilarious!
anyway, umm yeah...I guess I will just google linux commands.
I just want to know what the heck I need to type in the command field if I would like to use the app to check something. (like when you guys were helping me move my dalvic cache to /cache last week...BTW thanks again!) I am curious to know what other command prompts I dont know, that could be useful to use from time to time.
...Thanks!
I wrote a command line cheat sheet a while back, some of these may be of use:
Commandline cheatsheet
.This is awesome! I will definitely be using this from now on. Renaming files just got a whole lot easier! ((which is a strange thing to be excited about on a friday night...*sadface*))mv somelongassfilename{,.bak}
When you don't have anything on either side of the comma inside the brackets, it appends...well...nothing to the part outside, so it would expand to this:
mv somelongassfilename somelongassfilename.bak
If you remember, that basically will just rename the file. The point is that you save yourself the trouble of retyping long names when you want to rename it, but just add a small change to the name. The same concept can be used with cp.
HISTFILE=/sdcard/bash_history
HISTFILESIZE=10000
serialno=$(getprop ro.serialno)
sd="/sdcard"
nan="$sd/nandroid/$serialno"
dt="/data"
dta="$dt/app"
dtd="$dt/dalvik-cache"
dtap="$dt/app-private"
ca="/cache"
s="/system"
sb="$s/bin"
sx="$s/xbin"
BLACK='\e[0;30m'
GREEN_H='\e[42m'
YELLOW_H='\e[43m'
TXTRST='\e[0m'
if [ `whoami` = "root" ];then
HOME="/"
PROMPT_H=$YELLOW_H
else
HOME="$sd"
PROMPT_H=$GREEN_H
fi
PS1="[\w]\[$BLACK\]\[$PROMPT_H\]\\$\[$TXTRST\] "
alias su="su -c 'bash --rcfile /sdcard/.bashrc'"
alias ..="cd ../"
alias ...="cd ../../"
alias cdp="cd -"
alias asd="a2sd"
alias asdc="a2sd check"
alias pd="pushd"
alias df="df -h"
alias du="du -h"
alias dus="du -sh"
alias sw="mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system"
alias sr="mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system"
alias where="type -a"
alias vi="$sx/vim"
alias top="$sx/top"
. It can also be used with commands that take arguments. As you can see, I have df as an alias to df -h. That means ever time I run df, it actually runs df -h. df can take arguments, so if I run df /system, it will actually be running df -h /system. You can read the rest to figure out what each one does.ll() { ls -al "$@" ; }
llh() { ls -alh "$@" ; }
lld() { ls -ald "$@" ; }
psg() { ps | grep $1 ; }
hs()
{
if [ $# -eq 0 ];then
history;
else
history | grep $1;
fi
}
shopt -s cdable_vars
shopt -s cdspell
shopt -s dotglob
cd
This is awesome! I will definitely be using this from now on. Renaming files just got a whole lot easier! ((which is a strange thing to be excited about on a friday night...*sadface*))
.okay, well, here's a few of the more useful ones, I suppose:
1) cd /path/to/some/directory
In the terminal, you're always in a directory. Typically, when you open a shell, you start in your homedir. You don't really have one in android, so whether you're running the terminal outside of root (I think the user is app_0 or something like that) or as root, you start in / (aka root, aka the top level). The cd command (change directory) will change the current working directory from where ever you are to the path you give. In Linux/Unix, a "." is short for the current directory, and ".." means the parent directory to your current directory. "cd ." doesn't mean anything (you can't change to where you are), but you can "cd .." to change directory to the parent directory of where ever you are. Its just a nice shortcut. . and .. are used in a lot of other applications as well. Beyond that, cd can be used with a path relative to where ever you are (simply called the relative path) or a full path (start with / and make your way down, giving the whole path). For example, if you're in /sdcard, you can type "cd .." to get to /, you can type "cd /sdcard/somedir" to get to /sdcard/somedir, or you can just type "cd somedir".
2) ls
ls will list the files and directories in the current directory if no arguments are used or the files and directories in a path that you give. If you ls a file, it will just show the file. ls is typically used with a few different options to make it a little more usable. "ls -l", for example, will list all files and directories with information such as file permissions, the last modified date, etc. You can lookup a full list of ls options and how and why to use them.
3) cat
print out the contents of a text file to the screen. It can also be use to write to a file. "cat > file" will dump you at a blank line, where you can start typing. Ctrl-C will stop, and you'll have written to the file. It will overwrite whatever was in the file. "cat >> file" will do the same, but it will append to the file if it already exists.
4) less
read the contents of a text file, but you have the ability to scroll up and down, search for strings, etc. You can lookup how to use it.
5) df
df stands for disk free, and it will show available space on mounted filesystems. df -h is used commonly, as it will show human readable sizes (2K instead of 2048, for example). Again, you can lookup more options.
6) du
du will show disk usage for a particular directory/file. Simply type "du file" is not all that useful, but you can do something like du somedir/* to see how much space each file/dir is using in a directory. Note that * is a wildcard meaning "everything", basically. It can be used with part of a string, so you could say something like du somedir/partofname* to run du on files that have partofname in the name of the file. In any case, it also supports the -h option for human readable format. This is commonly used for something like this:
du -sh *
du -sh somedir
The first one will show the total disk usage for each file/directory in your current directory. If you have two directories names dir1 and dir2, it will print out the total space used by dir1 then the same for the next. It's total usage for each, basically. The second one is the same, but is used to show the total for just directory you want.
7) mount
By itself, it will print out a map of mounted devices, where they are mounted, and the mount options. It can also be used to mount currently unmounted devices, remount currently mounted devices with other options, etc. You can use the umount command to simply unmount a mounted device. When I say device, I mean any block device that can be mounted. A simple disk partition is an example.
8) ps
See a list of all running processes. The busybox implementation is a bit weird. Normally you'd type "ps -ef" to get a list of processes with the PID (process ID), it's parent PID (what launched the process), the name of the process, how long it's been running, etc. This doesn't seem to do anything on android. Just running ps by itself seems sufficient on Android. In any case, this is most commonly used with...
9) grep
grep is a command line search utility. It normally works like this:
grep pattern file
That means that you want to search for a pattern in a given file. If you do that, it will print out all lines from the file that match the pattern. You're going to want to lookup how to use various kinds of IO redirection, as grep is most commonly used with the "|" aka "pipe". What this is used for is to take the output of one command and use it as input for some other command, so when used with ps, it would look like this:
ps|grep someprocess
Where some process is a process or another. If I do this, and it returns the process with its pid, etc. it means I know it's running. If it returns with nothing, it's not running. This, of course, only works if I know the name of the process. It is also helpful if you want to know the pid of a process.
10) cp/mv
These are two completely different commands, but you'll use them both in similar situations. Cp is copy, and it is used like this:
cp source destination
Both source and/or destination can be a full path or relative path. Source must be a file, but if you want to copy a whole directory, you can, but you must use the cp option to do that (I'd tell you, but it escapes me at the moment). Destination can be a file name (in which case, the file being moved is renamed to the destination file name you gave) or you can give a path as the destination, in which case the source file is copied there with its current name. Here is where the command line becomes very handy, though, more so than any gui. The command line allows so many different ways of combining commands and referring to multiple files, etc. all at once. You can say something like this, for example:
cp /sdcard/somdedir/* /sdcard/somedir2/
That will copy all files in somedir to somdedir2. You will have to give it the option to be recursive, though, if there are directories in somedir. In any case, this is not something that is particularly easy to do without the command line. As you can see, it's just a one line command, here.
mv is similar, except it will move files. It's used in the same way:
mv source destination
It has the same basic rules too (use relative or full paths). If not source file is given (just a directory) the whole directory will be moved. If the destination directory exists, it will copy the file/directory there. If it doesn't, it will move the directory to the destination, but rename it to whatever name you gave. The directory you're moving to must exist, though. By that, I mean, you can move a directory to a full path tree that doesn't exist. At least the top level must exist. Note that mv is also a rename utility of sorts. When you say mv file1 file2, it will basically move the file to the current location using the new name file2. This is the same as basically just renaming the file from file1 to file2. Once you get more comfortable with the command line, there are some shortcuts that I won't go into now, but just know that you'll be able to save a lot of time.
There are many, many, many more commands you'll want to know, but that's a starter. For Android specifically, those are some of the more common ones you might want to use.
Aka did u just type all the or did u copy an paste it...wow u can type man. Lol
.