Application scenarios and Known issues:
For CentOS6 or CentOS7 (may apply to CentOS4 or earlier versions of 5)
The root filesystem (extended file system) is managed using LVM, such as the Mount command output
IntroductionThe shopt command allows you to set optional parameters for the shell.shopt [-PSU] [optname ...]-S turns on an option.-U turns off an option.-p lists all the options that can be set.Extglob OptionsIf the EXTGLOB option is turned on, the
[This is my own study notes, welcome reprint, but please specify the source:http://blog.csdn.net/jesson20121020]
see how to pass parameters to a shell script today, you need to master two commands, one is the shift command, the other is getopts.
What are the special characters in the bash shell? Some special characters in the bash shell do not represent the meaning of their characters themselves, but have another meaning, called: meta-meaning.
1. Characters: #
Represents a
Recently scripting, I often see conditional statements with the IF [-X $variable] class, not knowing what the meaning of the corresponding parameter is,The excerpt is as follows: from http://blog.csdn.net/aaaaatiger/article/details/1713611thanks!1[ -
Original address: http://blog.itpub.net/90618/viewspace-750822/1: Open a terminal, after the SCP command runs, enter a password to copy it# SCP chris@221.179.1.65:/data/backup/eas_act_pay_sys.sql.gz./--Enter passwordeas_act_pay_sys.sql.gz 3% 52MB 42.
1. "Type" detection of a file name (presence or absence), such as TEST-E filename-E Does the "file name" exist? Common-F is the "file name" an archive (file)? Common-D is the "file name" directory? Common-B is the "file name" a block device
Echo is an internal command of the shell that prints the specified string on the screen. Command format:
Echo Arg
You can use echo to achieve more complex output format control.Show escape characters
echo "\"It is a test\ ""
There are two ways to bring the echo output color
Define color variables in shell scripts, use ECHO-E to call variables
When defining a variable, define the ECHO-E in the variable, and then output the variable
Shell script that
In the process of writing a shell script, it is sometimes necessary to use some variable values are defined as (*) variables, but when we try to reference this variable, bash has the default to replace (*) the list of all the filenames in the
Linux Shell if parameterUsed in shell programming to determine parameters within an if statement–b return True when file exists and is a block file-C Returns True when file exists and is a character-D returns True when pathname exists and is a
Preface or today to write an automated packaging script, using the path name to get the last file name. Here is a record of the implementation process. Of course, in the end I will also give the official approach. (PS: Very embarrassing, realized
/********************************************************************** Author:samson* date:04/18/2014* Test Platform:* Linux Ubuntu 3.2.0-58-generic-pae* GNU Bash, version 4.2.39* *******************************************************************/#
What is a shell:The shell is a human-computer interface, so that humans can control computers, usually have a graphical interface and text interface of twoGraphical interface: Gui:graphic User Interface:WindowsIOS, AndroidX-windowGnomeKdeXfceText
Qiniu Seven cow problem solutionGetting started with the Shell scripting languageProblem solving Shell Daily learningCd/go to the root directory PWD current directory structure tab blur find complete command IFCONFG view current network information *
In general, the programming language can be divided into two categories: the compiled language and the interpreted language. Compiled languages many of the traditional programming languages, such as Fortran, Ada, Pascal, C, C + +, and Java, are
SET commandIt can be used to customize the shell environment and use the option "O" to enable or disable the option. For example, enable option: set-O option, and disable option: Set + O.
Shopt commandIs an alternative to the set command, which is
Shell script learning and shell script1111111111111 clear the simple command script of the messages log file under/var/log/Var/log/the system file under the log file must have the root permission:$ UID is the global variable of the system:Make &
Non-interactive password modification in Shell scripts and non-Password modification in shell scriptsToday, when I wrote a shell script, I found that the user's password needs to be set and the password is set to interactive. This is obviously not
Install tomcat in linux (centos) (use shell scripts to install tomcat as a service) and centostomcat1. Download tomcatDownload the linuxlinuxversion (tar.gz) from http://tomcat.apache.org/download-70.cgi)2. decompress, upload, and grant
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.