common sense of Shell script programming span> (These are often used frequently, but all kinds of materials on the Internet are vague things, personally think they are more useful)
s b sock
The UNIX operating system (Eunice) is a powerful multi-user, multi-tasking operating system that supports multiple processor architectures. According to the classification of the operating system, it is a time-sharing operating system. It was first developed by KenThompson, Dennis Ritchie and Douglas McIlroy in 1969 Developed in AT&T’s Bell Labs in the year. At present, its trademark rights are owned by the International Open Standards Organization, and only UNIX systems that conform to a single UNIX specification can use the name UNIX, otherwise it can only be called UNIX-like (UNIX-like)
common sense of Shell script programming span> (These are often used frequently, but all kinds of materials on the Internet are vague things, personally think they are more useful)
s b sock
Monitor the program of this machine and send alarm emails abnormally
#!/bin/bash
# Native IP
HOST=‘59.110.69.217’
# Mail service address
URL=‘http://101.201.150.205:9527’
# Mail receiving
#!/bin/bash
a=23
echo ‘$a’
echo “$a”
your_name=’runoob’
str=”Hello, I know you are \”$your_name\ “! \n”
echo -e $str
echo $str Output
bogon:Desktop macname$ ./test.sh
$a
23
Hello
I have many files in the same subdirectory as follows:
10 A
11 T
12 A
13 C
15 A Two columns, the first line always starts with the number 10.
I just want to Add lines 1-9 at the beginn
Vim compiler related knowledge 1. About the Vim compiler In popular Linux operating systems, a super easy-to-use text editor is installed by default-the name is “vim” , vimis an upgraded version of
1. IP address configuration
guarantee linux can Normal Internet access
2, network yum source code (default is configured, only Just need to understand it)
3. Commonly used yum com
################for loop statement structure#############
When using for loop statement, you need Specify a variable and a list of possible values, and repeat the same command sequence for each dif
I want to open a file (especially a video file) in its default program through a script. When I encounter a file name with spaces, it is treated as several parameters, This is not surprising:
The shell script realizes the query N days before or N days after the specified date 1 1 span> #!/bin/bash
2 func(){
3 read -p “Please enter the year, month and day (format: 2019-01-01): ”
Question requirementsAssuming that the root password of the current MySQL service is 123456, write a script to check whether the MySQL service is normal (for example, you can enter mysql normally t