Shell is a program that acts as an intermediary between the user's operating system. Users can run programs, create a pipeline of the process and save the output to a file and run more than one program within a same time.command contained in the android operating system can be seen in the directory / system / bin.
To enter the shell in android operating system can use the command 'adb shell' command prompt on the computer or go to the emulator developers through Dev Tools menu and select the terminal emulator
• ls is used to display a list of the contents of a directory
syntax: ls: shows the content of the active directory
ls filename / direktoriname: displays the filename (if the file exists) or the contents of direktoriname
ls-l: displays the contents of a directory in long format
• cd is used to move to a directory
syntax: cd namadirektori: move to namadirektori
cd .. : Move to upper directory
• echo to display text to standard output
syntax: echo 'abc': display text to the screen abc
Allows the transfer facility to store the output of a process to a file.
• The command> filename
So that the output from these commands will be stored in the file filename. Shell plans to create a file if the files have not been there or rewrite the file if the file already exists so that the contents of the old file will be deleted.
• The command>> filename
The difference with the previous syntax is the output of the command is not re-written to the file but added to the file so that the contents of the file is not deleted.
c. Background Process
If the command followed by the characters '&' then the subshell will be created to run the command in background processes.
Syntax: command &