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 Test Command

Shell Test CommandThe test command in the shell is used to check if a condition is true, and it can be tested in three aspects of numeric, character, and file. Numerical test Parameters Description -eq

CentOS Install fish Shell

For CentOS 7, run the following command with root user root :Cd/etc/yum.repos.d/wget Https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish: Release:2.repoyum Install FishFor CentOS 6, run the following command with

Function of Shell programming

First, function definition and invocationA function is a series of commands that are customized in a shell script, and generally the function should have a return value (returning 0 correctly and returning a non-0 error). For error returns, you can

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

Written question Shell

Enterprise Practice question 1: (Production actual case): monitor MySQL master-slave synchronization is abnormal, if abnormal, send sms or mail to the administrator. Note: If there is no master-slave synchronization environment, you can use the

Shell script implements file traversal and delete operations

The following features are required for this article: a folder that has a folder that is named by a numeric number requires the deletion of files other than the maximum encoding.Specific implementationGeneral idea: Loop through all the files in the

Shell Basics (ii)

echo commandThe echo command for the Shell is the output for the string.#!/bin/shread name #读取标准输入的行echo "$name It is a test" echo-e "yeah! \c "#-E Open escape \c No Line echo" It is a test "printf commandprintf is used as a formatted string, as

CentOS 7.4 Shell does not display current user and path issues

The steps are as follows: Vim ~/.bash_profile (no tube. Bash_profile This file has several, own new one is also possible) at the end add Export ps1= ' [\[email protected]\h \w]\$ ' Then execute the source ~/.bash_profile so the shell can display the

Common shortcut key collection under Linux terminal shell

Delete"Ctrl" + "D" removes the character at the cursor location equivalent to VIM x or DL"Ctrl" + "H" removes the character in front of the cursor, which corresponds to the HX or DH in vim."Ctrl" + "K" removes all characters after the cursor

Shell script parsing nginx access log status code

1. Get nginx log access status code;Grep-ioe "http\/1\. [1|0]\ "[[: Blank:]][0-9]{3}" Nginx_app.api.zhaoyifen.ssl.logGrep-ioe "http\/1\. [1|0]\ "[[: Blank:]][0-9]{3}" Nginx_app.api.zhaoyifen.ssl.log |awk-f "[]+" ' {if ($2>=100&&$2=200&&$2=300&&$2=400

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

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

Zephyr's Shell

1 PrefaceThe shell can deal with subsystems, and subsystems can provide many interfaces for external settings and read information.Below is the kconfig configuration of the shell, the use of the shell, and how to create a new shell command.It can be

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 '

2 minutes-implementation of the boot-up nginx boot script (Shell article)

How to quickly write a startup script , mainly through the following several1, logical smoothing can be in TXT file, have pseudo code way, form system, List order, then add code in a little bit Determine if the program is running

Shell reads file rows, columns

Cat ${file} | While Read lineDoecho $ LineDone-------------------------------------------While the read line #每次读取aa a row in the. ListDoEcho $LINE #输出每行的信息Done ${file}-------------------------------------------Reads the first and second columns

Java operation Linux, invoke shell command

Importorg.junit.jupiter.api.Test;ImportJava.io.BufferedReader;Importjava.io.IOException;ImportJava.io.InputStreamReader;ImportJava.io.OutputStreamWriter;ImportJava.io.PrintWriter;ImportJava.util.logging.Level;ImportJava.util.logging.Logger; Public

Sorting algorithm--shell sorting

Second, the shell sortThe shell sort is also called "Reduced incremental Sort" (disminishing increment sort), based on the insertion sort.The shell suggested sequence is a common but not ideal increment sequence:1,...,n/8,n/4,n/2

Total Pages: 541 1 .... 259 260 261 262 263 .... 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.