System: CentOS 5.xOpenSSL upgrade script content:Cat openssl_update.sh
The code is as follows
Copy Code
#!/bin/bashif [[$EUID-ne 0]]; Thenecho "This script must is run as root" 1>&2Exit 1FiYum-y Install glibc* cpp gcc*
Objective
We all know that when you use the LS command to list file lists, different file types are displayed in different colors. So how do you implement this color-colored text output? The answer is not complicated, whether it's in the shell or
Here I share is learning the computer Shell scripting language method, you may not be in the software industry, but I suggest also look, because I did not say what technical details, the main share is to refine the generality of the method, which is
Sometimes we need to repeat the previous commands in Bash. You can, of course, use the UP ARROW keys to view the commands you've run before. But there are some better ways, for example, to master the following shortcuts.
1)!! : Repeat the previous
Login protection is a very important link, the following through an illustrated way to give you detailed explanation:
Two days ago, @cyy sent me a picture.
Then I thought about the Ushq SSH login app notification feature, and then just like if
Once a file is created, it has three ways to access it:1) Read, you can display the contents of the file.2) write, you can edit or delete it.3 Execute if the file is an S H e l l script or program.The permissions of a file can be grouped into three
The shell can also use regular group captures, but you cannot capture groupings by using a form such as $ or \1, which can be obtained through array ${bash_rematch}, such as ${bash_rematch[1]},${bash_rematch[n]}Take ip= "121.0.2.2" for example, the
Scene:The Redis keys value needs to be monitored, and monitoring scripts are executed using the Crond cycle. If there is an exception, notify by email.First, install the MSMTPDownload softwarewget http://sourceforge.net/projects/msmtp/files/msmtp/1.4
1. Basic Regular Expressions1.1 regular expressions and wildcard characters(1) A regular expression is used to match a string that matches a condition in a file , and a regular contains a match . grep, awk, sed, and other commands can support
Last night spent a whole night answering a question about the redirect output to/dev/null in the shell. Decisive tonight also synchronous hair here, anyway no one see ~ ~ ~The following comes from a heavy Linux use patient's unsolicited
What happens when the program executesWhen you double-click the Terminal program icon on the desktop, a program loaded into the shell opens. The commands you type do not execute directly in the kernel, but interact with the shell first.Command (eg. '
Shell Script Series Tutorial Two: Start Shell programming2.1 How do I write a shell script?(1) The most common use of VI or mcedit to write shell scripts, but you can also use any of your favorite editor;(2) After the script is written, to set
Introduction:1. If you want to know what the/home partition usage is for the tens of thousands of servers you are managing. 2. What do you do if you want to add the same scheduled task to the tens of thousands of servers you manage? 3. What if
The result of the test is 0 or not 0, 0 is true, and not 0 means false.
Test commandTypically used with statements such as if, while, until, and so on.#test An expression#test [expression]//[trailing space,] preceded by a space
File properties
The following string is known to be the result of the random number variable md5sum|cut-c 1-8 intercept, please crack these strings corresponding to the md5sum before the random corresponding number?[Email protected] md5]#CatZifuchuang2102929900205d1
| Introduction If you are using GIT with the command line, you can use the git status command to query which branch you are working on now, but it's hard to forget what branch you're under, so you have a mug with a wrong operation. It is no doubt
Continue and break are commonly used in the while, until, select Loop statements, exit this round or all loops under specified conditions, we need to use the example to verify the results of the operation, it is good to understand. But it's really
About SEDSed is an online editor that processes a single line of content at a time.When processing, the currently processed rows are stored in a temporary buffer called pattern space, followed by the SED command to process the contents of the buffer,
The shell is much more programmatic in terms of programming than Windows batch processing, both in loops and operations.Bash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.
Remote control using sendkeys in vb.net:Sendkeys has been used in vb6. Remote control is used to indirectly control external programs by sending keyboard events.In vb7, I found that this was useless and it was useless. Later I saw this when I
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