You must download the MySQL5.5 binary compression installation package before executing the script. I have downloaded it in advance. Execute the shell script below.#!/bin/bash#auth:taoyake/bin/mkdir -p /taokey/toolscd /taokey/tools/tar -zxf mysql-5.
Http://www.runoob.com/linux/linux-shell.htmlShell Pass ParametersIn addition, there are several special characters for handling parameters:
parameter Handling
Description
$#
The number of arguments passed to
#!/bin/bash## Chkconfig:-95 15# description:tomcat Start/stop/status Script#Location of Java_home (bin files)Export java_home=/usr/local/jdk1.7.0_75#Add Java binary files to PATHExport path= $JAVA _home/bin: $PATH#CATALINA_HOME is the location of
Shell Introduction1.Shell was born in Unix,unix's first scripting language, which is a tool for interacting with unix/linux, it is meaningless to learn the shell alone, and the proficiency of the shell is a reflection of the user's proficiency in
Bash variable Category:
Local variable: Also called local variable, valid only for the current shell process
Environment variables: current shell and its child shell, child shell ....
Special variables: $? The status of the last
Awk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports. To put it simply, awk reads the file line-by-row, using spaces as the default
First, shell variables1. Variables can be divided into two categories: environment variables (global variables) and local variables.Environment variables: All environment variables are system global variables that can be used in all child processes,
The function is actually to give a code a name, each time you use this code can directly use the function name to invoke it.First, create a functionThere are two kinds of formats for creating functions:Format 1:function function name {function
Java suspended animation, but the process is still in, you can determine whether the log file changes over time to determine whether Java suspended animationThe shell script is as follows:#!/bin/bash# #通过比较五分钟前后, log file MD5 value is the same, to
1. Describe the results of the following commandsMore/etc/shellsDisplays all the contents of the shells text.Echo $SHELLView the shell program used by the current user.History-cClear historical and practical commands.Echo $HISTIZERecord the history
Enterprise Real Shell interview questions, a challenge to put!Statement: If there is a similar, purely plagiarism1. Develop a daemon script that executes every 30 seconds to check MySQL master-slave synchronization[email protected] scripts]# cat
18-Channel Shell advanced Programming enterprise face testhttp://oldboy.blog.51cto.com/2561410/166516321 operation and maintenance personnel will have shell face questionshttp://oldboy.blog.51cto.com/2561410/1632876Enterprise Programming problems
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