shell
interpretation Tip: understand the composition of LNMP architecture 50: Represents a L inux system N: Represents the Nginx service M: Represents a Mysql database P: Represents programming languages such as PHP, python, perl, etc working principle Tip: to achieve what effect, the general processUTF-8...
Posted by steviez on Mon, 17 May 2021 04:04:09 +0930
1, Random number bash There is one by default $RANDOM Variable of The default is 0~32767. use set |grep RANDOM View the random number generated last time echo $RANDOM Generate 0~1 Random number between echo $[$RANDOM%2] Generate 0~2 Random number between echo $[$RANDOM%3] Generate 0~3 Random nUTF-8...
Posted by blmg911 on Thu, 20 May 2021 02:10:04 +0930
working principle Read the text line by line. By default, the space or tab key is used as the separator to separate. The separated fields are saved to the built-in variables, and the editing command is executed according to the mode or condition. The sed command is often used to process a wholUTF-8...
Posted by eth0g on Mon, 24 May 2021 06:14:19 +0930
variable Introduction to a variable What is a variable? Quantity refers to the state in which something is recorded Change means that the state of things can change Variables are essentially a mechanism for accessing data. Variable data is stored in memoryWhy variables? The essence of running aUTF-8...
Posted by discofreakboot on Fri, 28 May 2021 01:59:22 +0930
A case study of grep cat wc tail command implemented by Linux sed Statement and introduction Sed: Stream Editor text Stream Editor, sed is a "non interactive" character stream oriented editor. This paper introduces how to use sed to achieve the effect of other linux file commands, or how to usUTF-8...
Posted by Ristiisa on Sat, 29 May 2021 05:11:00 +0930
Application of shell function Function application scenario: some commands need to be called and executed repeatedly. If the same command is used every time, it will lead to a large amount of code. In order to solve the problem, the command sequence can be written together according to the formUTF-8...
Posted by killswitchfilter on Tue, 08 Jun 2021 02:54:30 +0930
preface Many times, because the company's server has a springboard machine, firewall, etc., we can not easily use sftp, scp and other tools. For the transmission of small files, RZ / SZ is the most convenient. If the transmission file is large, it is not suitable. We may need to build ftp or hUTF-8...
Posted by moomsdad on Thu, 10 Jun 2021 07:05:04 +0930
Experiment 1: Develop system monitoring scripts Requirement description: Write Shell monitoring script named sysmon.sh Monitoring includes CPU usage, memory usage, root partition disk usage Percentages need to be precise, such as 7%, 12%, 23%, etc. Warn if disk usage exceeds 90%, CPU Over 80% UTF-8...
Posted by inkfish on Thu, 17 Jun 2021 04:39:50 +0930
function 1, Function introduction 1. What is a function??? A function is a container used to hold a group of code. A group of code in a function completes a specific function, which is called a group of code blocks. Calling a function can trigger the operation of the code blocks in the functioUTF-8...
Posted by badassrocker on Thu, 17 Jun 2021 08:19:43 +0930
Find documents Go on [shell learning | 002] - understanding command line terminal Linux distributions usually don't come with paper reference manuals or CD ROMs. However, its online documentation has always been one of the advantages of Linux. Starting with earlier versions of the operating sysUTF-8...
Posted by simonyuriko on Fri, 18 Jun 2021 06:30:25 +0930