Alibabacloud.com offers a wide variety of articles about learn android linux command line shell, easily find your learn android linux command line shell information here online.
(so Easy)
#1. Note
#在进行shell编程时, the sentence at the beginning of the # represents the comment until the end of the line.
#我们真诚地建议您在程序中使用注释. If you use annotations,
#那么即使相当长的时间内没有使用该脚本, you can understand how the script works in a very short period of time.
#2变量
#在其他编程语言中您必须使用变量. In shell programming, all variables are composed of strings, and you do not need t
-S: Stop output to the screen.
# Ctrl-Q: reactivate and output to the screen.
The default shell, 'bash', has the history editing and tab completion functions.
# Up-arrow: Start history command search.
# Ctrl-R: Start the incremental history command search. You can check which commands you have used based on the keywords.
# TAB: Enter the complete file name in th
command-line editing:Cursor Jump:CTRL + A: Skip to the beginning of the commandCtrl+e: Jump to the end of the command lineCtrl+u: Delete the cursor to the beginning of the command lineCTRL+K: Delete the cursor to the end of the command lineCtrl+l: Clear ScreenCtrl+d: Delete
:--rotate ADB Shell Screenrecord--rotate/sdcard/demo.mp4 Description: This feature is experimental, experiments on NEXUS6 devices, recorded video playback is also rotated 90 degrees play, experience is not very friendly. 5. Export Video: ADB pull/sdcard/demo.mp4 d:/ Description: The location of the exported video is under the D-Packing directory with the name Demo.mp4 Second, the use of recording function in Ddms 1. Use DDMS on the
.
$?
The exit state of the last command, or the return value of the function.
$$
The current shell process ID. For Shell scripts, this is the process ID where the scripts are located.
Command-line argument
Code code as follows:# php-f/var/www/html/infophp.php | Less
Check all PHP information
Here, the '-f ' option resolves and executes the file followed by the command.
2. We can use this very valuable debugging tool directly on the Linux command line without phpinfo() having to call it from a file, just execute the fol
Standard input/output and redirection, Linux distribution Fedora Core Linux, and Red Hat's original Red Hat Linux development team will continue to participate in the development of this release.
standard input and output
We know that executing a shell command
Shell Common knowledge
First, the user login into the system after the system environment variables
$HOME user's own directory$PATH directory to search for when executing commands$TZ Time Zone$MAILCHECK every few seconds to check for new letters$PS 1 The prompt number at the command column$PS 2 When the command is not finished, the
The key to using command-line arguments is that the shell script needs to interact with the person who is running the script.The bash shell provides command-line arguments to add data values after the
Use Bluetooth in the Android command line and Bluetooth in the android command line
Note: This part only applies to broadcom series bluetooth chips, such as RK903 and AP6xxx Series
Switch to the root user using the su
1.1 Shell parsing command lineThe approximate operation of the shell when reading and executing commands is as follows:Take the following command as an example:Echo " Some files: " " \nthe date:$ (date +%f) \n$name ' s is $ ((a+4) ) " >/tmp/a.logAssuming that the variable "Name=longshuai" and "a=24" are assigned before
Tags: Shell special variablesShellSpecial variables: Shell $, $#, $*, [email protected], $?, $$ and command line argumentsAs already mentioned, variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings, and such variables are called spe
.
$$
The current shell process ID. For Shell scripts, this is the process ID where the scripts are located.
Command-line argumentsThe arguments passed to the script when the script is run are called command-
Shell Command Line writing rules
An understanding of the basic functions of shell command lines helps to write better Shell programs. When executing shell commands, multiple commands
When writing a shell program, you often need to handle command-line arguments, and this article describes the command-line approach under bash.Options and Parameters:Like the following command
: environment variables (global variables) and ordinary variables (local variables)(1) Environment variables can also be called global variables, which can be used in the shell in which they are created and in any process shell that they derive from, and can be divided into custom environment variables and bash built-in environment variables.
Environment variables generally refer to variables expor
From this beginning, it is the text content operation, which differs from the text operation.
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching rows. The grep full name is global Regular Expression Print, which represents the global regular expression version, and its use permissions are all users.
general, environment variables are used only in logon scripts.
Here's what this is about, and we'll touch on the real part of the specific Linux shell scripting basics.Learn more about Linux Shell Scripting Basics (II.)Linux Shell
function.
$$
The current shell process ID. For Shell scripts, this is the process ID where the scripts are located.
Command-line argumentsThe arguments passed to the script when the script is run are called command-
Fun in the terminal: 6 interesting Linux Command Line tools, linux Command Line
Article link:
Http://hpw123.net/a/Linux/ruanjiananzhuang/2014/1103/117.html
More articles are availableH
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.