1. Open the Winows menu, enter the cmd command, click OK, and enter command mode.2. Enter Command D: (the D here indicates that your SDK is stored under the disk)then enter the CD3. Then select your SDK path and copy the path.4. Click cmd on the
Configure the ADB command on your MacWhen you use the ADB command in Mac OS, you should configure the variables as follows:First, the terminal input CD ~Second, enter touch. Bash_profile returnTouch: If not, create a file, if any, update the file
Shell variables in Linux $#, [e-mail protected],$0,$1,$2 meaning explanation:Variable Description: $$ the shell itself PID (ProcessID) $! What is the PID of the Shell's last running background process? End code of the last Run command (return value)
The ability to remove comments from various files in a Linux operating system is often used to view a longer file without looking at annotations. Typically these files include *.c written in C, *.h files, CPP files, *.xml files, *.sh shell script
This error occurs because some Linux systems use Ash to compile shell scripts by default, as is my machine, but the scripts I write should be executed with bash. Although I noted in the beginning #!/bin/bash, as if it is still the default to find
Http://kodango.com/useful-documents-about-shell$$ the shell itself PID (ProcessID)$! PID of the Shell's last running background process$? The return value of the last command that was run to check whether the previous command executed successfully.$*
These eight recommendations come from some of the experience and lessons learned by key writers in writing shell scripts over the years. In fact began to write the time is not only these several, and later thought repeatedly, remove a few irrelevant,
Rman backup is easy to use and inexpensive for Oracle database backup and recovery. For non-catalog mode, it is undoubtedly the first choice to embed Rman scripts into shell scripts and then use crontab to make small database database backups. This
Enterprise Utility Script 16Enterprise Case: Write Network Service standalone process mode rsync system startup scriptFor example:/etc/init.d/rsyncd{start|stop|restart}.Requirements:1. To use the System function library technique.2. To use a
1.!! Command # indicates the previous outputHistory |grep #表示历史记录中的第23条! Vim #上一条vim记录Alias music= ' Cat test ' #表示别名Unalias Music #表示取消别名* #匹配一个或零个或多个字符? #匹配一个字符| #管道符号, drop the previous run result to the following commandCtrl + Z, FG, BG, Jobs
Iii. Command HistoryBash has absorbed a lot of essence from the Korn shell and the C shell, one of which formally holds the feature of a cached copy of the executed command, which we call the "command history" feature.Why should we use the command
echo Display in shell script with color display, echo display with color, need to use parameters-The e format is as follows: The copy code code is as follows: Echo-E"\033[Word background color; text color m string \033[0m"For example, copy the code
1, #!/bin/shThe first line tells the operating system that the interpreter for this script is/bin/sh this executable file2. While loop:#!/bin/shSleep 1; echo "User"; \Sleep 1; echo "Password"; \While true; Do \echo "Output"Sleep 1; \Done3, the shell
The conditional judgment statement in the shell is an upgrade to the previous "conditional test statement in the shell", meaning that the preceding test statement serves the IF~THEN~FI statement for the current judgment statement.We're still rolling
getopts CommandUseProcesses command-line arguments and verifies valid options.Grammargetopts option string name [parameters ...]DescribeGetopts is designed to run in a loop, and each time a loop is executed, getopts checks the next command-line
1. Understanding Shell Scriptshell Script is a "program" that uses the shell's function abbreviation, which uses plain text files to write some shell syntax and commands (including external commands) in it, with regular expressions, pipeline
One: Cause(0) Perhaps because of a momentary impulse you start to focus on and learn shell programming, but also because the "hearsay" shell is very powerful, but also because of the charm of shell programming, but also because as a coder of the
From:http://www.nginx.cn/1934.htmlWhere the shell script needs to interact with the here document is the implementation, but some commands require the user to manually go on the interaction such as passwd, SCPIt is very painful to eliminate user
Linux Shell variables Mathematical operationsAbstract:1) The Linux shell uses let, [], (()) Three operators to manipulate shell variables for simple basic operations;2) The Linux shell uses expr and BC two programs to achieve advanced operations;1,
Several simple shell programs were written these days, and then all appeared syntax error near unexpected token ' ('Error, and then it is not possible to check the error, the reason behind Baidu was found:The previous error program fragment is as
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service