Shell's most commonly used service script

fpm

Mission Requirements: Managing/USR/LOCAL/PHP7/SBIN/PHP-FPM-C in the simplest way/usr/local/php7/etc/php.ini This command includes starting a stop restartUsing technology: Shell Scripting Chkconfig Service ManagementImplementation process:1. Create a

Shell Learning Notes

I. Shell INTRODUCTIONThe shell is a command-line interpreter for Unix/linux, and a series of commands executed by the user in the shell are executed directly by the shell command-line interpreter. Modern, popular command-line interpretation features

Application of shell script learning advanced and regular expression

Sort order:-F: ignore character case-N: Compare numeric Size-T: specify delimiter -K: Specify to compare field ordinals after delimited-u: duplicate rows, only once Sort by the second row of values:$ sort-k2n SORT.TXTCCC 8aaa 11yyy 12

To learn the shell programming of Linux in a face

1: What is Shell??? (1) The shell is an interface that the user interacts with the kernel, and the most popular shell is now called the Bash shell(2) The shell is also a programming language (3) A system can have more than one shell, you

Vertical bars in the Linux Shell (|)--Pipe symbols

Pipe symbol, UNIX is a very powerful feature, the symbol is a vertical line: "|".Usage: Command 1 | Command 2 His function is to pass the result of the first command 1 execution as input of the Command2 to command 2, for example: $ls-S|SORT-NR (Note

Use Shell's Prompt_command to add log audit function to record any user's actions to log file in real time

Using Prompt_command to implement the command audit function:Record what users, at what time, what to do, and then record the information found in a file.Specific operation:Append the following to/etc/profile:############ #日志审计chmod +s/usr/bin/chmod

Shell Record-shell Script Basics (v)

The PS command in Linux is the abbreviation for process status. The PS command is used to list those processes that are currently running on the system. The PS command lists the current snapshots of those processes, which are those that are

Shell Programming (iii)

In the first two articles, we have mastered some of the basic syntax of the shell, the use of variables, and the operation of basic data types. So this time we will learn the shell's structured commands, which are conditional selection statements

Shell finishing (40) = = to crack the encrypted QQ number

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M00/A7/58/wKioL1nlhuKSgQOnAAD7ZPQ7koc703.jpg "style=" float : none; "title=" QQ picture 20171017123847.jpg "alt=" Wkiol1nlhuksgqonaad7zpq7koc703.jpg "/>650) this.width=650; "src="

A client-side shell script that installs the environment and services in one click

#!/bin/bashbasepath=$ (CD ' DirName $ '; pwd)Shell_dir= "${basepath}/shell"Package_dir= "${basepath}/package"############################# #install rpm###########################关闭不必要的软件并禁止开机启动Systemctl Stop FirewalldSystemctl Disable

Linux Shell string interception and splicing

A string interception of Linux is useful. There are eight ways.Suppose there is a variable var=http://www.linuxidc.com/123.htm 1 # Intercept, delete the left character, and leave the right character.  Echo ${var#*//}where Var is the variable name

Shell finishing (===date) small script for command

(a) accept an input, judging is not a date, the user's input can be 2017-10-1 or 2017.10.1 or 2017/10/1The shell code is as follows#!/bin/bashRead-p "Input:" DateA= ' echo $date | Awk-f ' [./-] ' {print $ '/' $ '/' $ $} 'Date-d $a &>/dev/nullIf

Related case actions for Shell commands

Case 1: variables, functions, judgments, comparisonstest.sh[JavaScript]View PlainCopy #!/bin/bash Echo ======================== This is a bash demo======================== printf "%s is%d years old \ n" Zhengjinwei DECLARE count=10

Shell finishing (33) = = = = = = = = = Change text content

Title: There are many sub-directories and files in the/tmp directory of the Linux system. Write a program (Shell/perl/python or any other language) to find the file of the wildcard log.201710* and replace any lowercase ABC letters in the file with

Linux shell under 16 binary "\uxxxx" Unicode to UTF-8 Chinese

The issue occurs in the background:There is a project through the IP to get the city needs of attribution, I was directly through the IP Attribution query interface of Sina to obtain. I'm using a shell script callresult=$ (curl-s '

Shell generates 100 6-bit random numbers

The shell generates 100 6-bit random numbers in a number of ways:Here's a script that reads:650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/06/AF/wKiom1m8Ax-wV92tAAA8Jft99zI996.jpg-wh_500x0-wm_ 3-wmp_4-s_3612996601.jpg "title="

Linux Shell ftp command download file based on file date

Requirements: FTP gets files for remote data, and downloads files according to the file's creation point in time. You can expand your own other requirements depending on the size of the file.Summary of Knowledge points:1, the time to obtain the file:

Linux Shell Programming Combat---Shell implementation image download artifact

$ cat dowonload_image.sh #!/bin/bash######################################### #图片下载器                                 # #script_name: dowonload_image.sh          # #author:weixiaoxin write by 2017-09-20    #     #######################################

Shell selection statement, loop statement

Judgment statement:If judging conditionThenStatement[Elif]Statement...[ElseStatementFi#!/bin/bashIf [$#-eq 0]Thenecho "Error"echo "can use this command like command file_name"Exit 4FiType= ' File $ | Cut-d '-f2 'Echo is a $TYPECase statement:Case

Linux Shell Programming---Text slicing technology in the shell

Shell The technique of text slicing inIn the shell there is also a string slice this thing exists, has been used in Python slices, the following record the use of slices in the shell.(1) , replacing some of the text in the variable contents$var = "

Total Pages: 541 1 .... 185 186 187 188 189 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.