Linux Operations and Maintenance - shell script exercise string burning 1

Script description1. Script 1: Solution to reload a large number of library files2. Script 2: Select and switch to the working directory you want to switch Script 1 explains: One employee's centos7 host system had the following problems: implement ldconfig The following error occurred in command time: the library files are empty and the length ...

Posted by e-novative on Thu, 29 Aug 2019 10:22:59 +0200

shell script step one (for, while, continue, break, select, etc.)

Script step one The second way of writing for cycle: As we all know, for has two ways of writing The first is: for I in k8s-node {1.3}; do setenforce 0; The Second Writing Style: C Language Style Write directly how to use: #After for, you must write two parentheses, also known as double parentheses. [root@linux1 ~]# cat for_2.sh #!/bin/bash ...

Posted by neclord81 on Tue, 27 Aug 2019 07:11:27 +0200

Detailed description of linux command execution process

1. Execution of ordersEnter the command and returnThe shell program is asked to find the executable program or code corresponding to the typing command and submit it to the kernel to allocate resources to run it in stages.There are two types of commands that can be executed in the shell:Internal commands: Internal integration commands that com ...

Posted by Stu on Sat, 17 Aug 2019 14:10:29 +0200

Detailed Explanation of Android's Shelling Protection Technologies for Application and Reinforcement

# 0x00 Preface Android application reinforcement technology is developed with Android application cracking technology. Reinforcement technology is divided into shell protection and disassembly protection. The mature firms on the market usually use shell protection technology and disassembly technology to reinforce Android applications. The su ...

Posted by alex_lana on Fri, 09 Aug 2019 13:51:31 +0200

Shell Operator for Shell Programming

Disadvantages of Shell Variables shell variables are weak types The default is string type declare command Syntax: declare [+/-] [option] variable name - Setting type attributes for variables + Cancel the type attribute of a variable - a: Declare variables as arrays - i: Declare variables as ...

Posted by NickG21 on Tue, 06 Aug 2019 10:28:00 +0200

Unix Shell exemplification - AWK exercise

Unix Shell exemplar refines Chapter 6 - AWK utility has six exercises, from simple to complex, currently done the first three questions, the latter three questions feel very laborious to do, about loops, arrays, functions, do not know how to do. AWK Exercise 1: Exercise 1 mainly focuses on the operation of regular expressions with patterns. So ...

Posted by jesus_hairdo on Tue, 06 Aug 2019 09:13:50 +0200

Week 3, Text Processing Tools, shell Scripting

Text Processing Tools 1,cut -d Specifies the separator.For example, -d: -d'' -f Specifies which column to choose.For example, -f1,3 --output-delimiter specifies the separator to display Tr-s compression-d deletion-c except 2. Percentage of disks fetched using tr and cut [root@glowing-bliss-1 data]# df -h | tr -s ' ' | cut -d' ' -f5 | tr -dc ...

Posted by ozone1 on Sun, 04 Aug 2019 18:29:17 +0200

Mass deployment of Nginx by ansible-playbook

nginx is deployed by source code compilation through ansible-playbook. All deployed nginx hosts are divided into webserver groups: # vim /etc/ansible/hosts [webserver] 192.168.30.128 192.168.30.129 192.168.30.130   Create a management directory: # mkdir -p nginx/roles/nginx_install/{files,ha ...

Posted by CodeToad on Wed, 31 Jul 2019 14:34:17 +0200

tcp protocol sticking problem

Sticky packet problem is caused by the way of streaming data transmission in tcp protocol Give an example: from socket import * client = socket(AF_INET, SOCK_STREAM) client.connect(('127.0.0.1', 8081)) # Communication cycle while True: cmd=input('>>: ').strip() if len(cmd) == 0:continue client.send(cmd.encode('u ...

Posted by damnsaiyan on Wed, 31 Jul 2019 04:25:16 +0200

The Principle and Common Methods of HashSet in Java Collection

Catalog Overview of HashSet II. HashSet Construction III. add method IV. remove method 5. Traverse VI. Total Take a look at LinkedHashSet first. Look at TreeSet VII. Summary Overview of HashSet HashSet is an implementation class of Java Set. Set is ...

Posted by Levan on Sun, 28 Jul 2019 03:39:47 +0200