Transfer
1. location parametersThe parameters provided by the system are called location parameters. The value of the location parameter can be obtained using $ N. N is a number. If it is 1, it is $1. It is similar to the number in C language.In
The following is an example of starting a hypertable database by executing shell commands in Java.
/** * Start the Database Service * @ return */ Public String startup () { // The command is dead. string commands = "HT start all-servers
1. Run the following three commands under the ADB tool:
Adb.exe
Adbwinusbapi. dll
Adbwinapi. dll
File
Install to c: \ windows \ system32
2. Compile a test. BAT file.
ADB push "\ 192.168.2.76 \ jiangsai \ mc850 \ library \ do not
The company's network is too bad, syncCodeThe speed is only 15 kb/s !!!
I can't bear to go online and find a shell script:
#! /Bin/bash echo "====== start repo sync ====" repo sync while [$? = 1]; DO echo "===== sync failed, re-Sync
Example about Linux Shell #! /Bin/bash echo "Hello world! " echo" Hello $ LOGNAME, it's nice talking to you " echo" U present working on a machine is 'uname-N' " echo" U Present working directory is $ (PWD) " echo" Bye for now $ LOGNAME. the time
When processing text files, It is very common to iterate and traverse rows, words, and characters in the files. A simple loop is used for iteration, coupled with redirection from stdin or a file. This is the basic method to iterate rows, words, and
Recently, the customer has been engaged in projects. The customer is eager to see the results. The boss always forgets to buy a domain name. There is no way to register a free domain name through the peanut shell for configuration. Because the
For, while,1. For command
ForVaRInList
Do
Commands
Done
Provide a series of values for iteration In the parameter list.(1) read values from the list
VaR is used to obtain the value in the list in this loop. In addition, the variable VAR
Common RPM parameters for these tasks !!! In Linux, you can run man rpm !!! It's only in English, or you can get Baidu RPM !!! I 'd like to paste a few below !!!! Common RPM commands 1. install a package # rpm-IVH 2. upgrade a package # rpm-uvh 3.
Lesson 5 shell contains mysteries
Last semester, Liu Bei accidentally met Lu Zhi, a food buyer, in the supermarket on campus near the mid-term exam. Suddenly, he had a strong impulse to get close to him. At that time, Lu Zhi had left the podium and
Common grep command syntax 1. Double quotation marks and single quotation marksWhen you input a string parameter in the g r e p command, it is best to enclose it with double quotation marks. For example, "m y s t r I n g ". There are two reasons for
ShellSpecial characters in
Author:Zccst
ShellIn addition to interpreting programs as commands, it is also a high-level programming language. ExploitationShellThe programming language can compile programs with strong functions but simple
Shell statement usage tips 1. Are you anxious to call the system "create shortcuts" Wizard to create shortcuts that VB does not support? Although you can call the fcreateshelllink function in vb5stkit. dll,
But it is designed for the installer. The
Some special symbols are often seen in bash shell. I collect them for reference:
Location parameters:For more information, see ABS (Advanced bash shell). The English version of ABS is the same.
$0, $1, $2, and so on...Location parameter, which is
Basic Unix shell script Test1. Which of the following code lines will print your previous working directory to the screen? CA. Echo ~B. Echo $ pwdC. Echo ~ -D. Echo *2. Which of the following symbols can be used to redirect the command output to a
CCID Continuing Education Students compile Unix shell program Examination1. What are the advantages of using functions in shell scripts? Which of the following is not correct. BA. They are faster than separate commands.B. They can execute recursive
1. Install SSH. skip this step and click Next.
2. Click SSH Secure Shell client and click quick connect above,
HOST: the IP address of the connected Linux instance (Log On As root in Linux, and view the IP address in ifconfig as shown in Figure
Preface
Quick edit shell command line
The most common cause is that Nux beginners say that the most annoying thing is Linux/Unix command lines. If you are an impatient person, you can first try the comprehensive exercises at the end of the article
Rename
Rename ABC abc0 * ABC *
Replaces the first ABC in the file matching * ABC * in the current folder with abc0.
The second variable name. The second access count variable reads $0 $1 $2 and so on.
1 #! /Bin/bash2 3 typeset param_num =$ #4
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