The command line can execute multiple commands at once, in the following ways:1. Separate each command;Note: The execution of each command will not affect the execution of other commands. In other words, each command executes,However, there is no
Programming Languages:Machine languageAssemblyAdvanced Language:Static language: Compiled languageStrongly typed (variable)Convert into executable format in advancesuch as: C, C + +, JAVA, C #Dynamic language: Interpreted language, on the flyWeak
You can read the following questions:1. What is the difference between CHMOD and chown?2. Where does cat output the content of the specified file in the path?3. Can CP be replicated between different types?4. How can I view the file size in HDFS?5.
If you use source or "." To execute a shell script (such as son. Sh), all statements in the script will be run as part of the current parent shell process. If son. sh execution statement source son. sh or. son. SH is a parent shell script (father.
Tag: Shell
In Shell, some symbols are processed differently under different definitions. There are three main methods to define them:
(1) single quotes
(2) double quotation marks
(3) reverse quotation marks
Double quotation marks and single
Write a script to fully install the samba service and share the directory. Input by the user,The script is automatically determined based on user input. Then write to the samba configuration file and access Samba. The unified user is root.
The
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Linux has many files, such as configuration files, log files, and user files. The file contains a large amount of information. We can
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Many regular expressions are used in the previous grep section. This section uses regular expressions in awk condition operations. Awk
Entry Level
Entry level: strings like 1, 2, 3, 4, and 5
#! /Bin/bashvar = "1, 2, 3, 4, 5" Var =$ {var //,/} For I in $ var; do echo $ I; done
In this way, the results can be output.Shap level
In the preceding example, the split string cannot
Start:The URL of svnis in excel. I copied it to txt.pdf, while VIOs only extracted the URL and saved it as url.txt.You can use VI to process url.txt, add SVN checkout, and other words to become the svn. Sh that can be run. Each row isSVN checkout.../
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
The cut command is similar to awk. It extracts information from the line and is an awk of the feature weakening version.The format of
Three types of commands can be used in shell scripts:
>>> Unix Commands
Although any Unix command can be used in shell scripts, some more common commands are used. These commands are usually used for file and text operations.
Common command
File descriptorBefore a process reads a file, it needs to open the file. When the process opens the file, Linux associates the file with a number (called a file descriptor ), the file descriptor is an index of the opened file in the input table.
--- Today, the space is relatively small; only quotation marks are introduced.
There are three types of quotation marks in shell: Double quotation marks ", single quotation marks", and reverse quotation marks'1. Double quotation marks: A character
Tag: ShellStrictly speaking,
Because 0 is the default value of
> This method is used to export data to a file. If the file does not exist, the file is created. If the file exists, the file is cleared. Generally, this method is used when we back
Preface when using bash shell to write a program, the for loop is often used, especially the requirement from 1 to 100. Here we record the C language of several types of loop methods from 1 to 100 in shell.
[HTML]View plaincopyprint?
For (I = 1; I
[Shell] The relative path cannot be found when crontab executes the task and calls the shell script.
The scenario where the problem occurs is probably
1 cron calls a python script
2. In the python script, call a shell script (for log analysis) to
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.