Linux Three Swordsmen Arrangement and Widget Expansion
Catalog
1. SED of Three Swordsmen
1.1. Fundamentals
1.1.1. Summary
1.1.2. grammar
1.2. List display
1.2.1. Add in/etc/passwd line 4
1.2.2. Append insert
1.2.3. delete
1.2.4. replace
1.2.5. Print Display
1.2.6. Multipoint Editing
1.2.7 Modify text content
2. AWK of Three Swordsmen
2.1. Summary
2.2. grammar
2.3. List
2.3.1. Se ...
Posted by riyaz123 on Sat, 29 Jan 2022 19:15:27 +0100
Exploring the 04 bash shell in Linux
-----Latest update [December 30, 2021]-----
Preview of this article's directory structure:
1, Introduction
2, shell variable
1. View variables
2. Variable type
3. Variable operation
4. Common global variables in the system
3, shell options
1. View shell options
2. Set shell options
4, Metacharacter
1. Metacharacter list
2. Citation and escape
...
Posted by AlanG on Tue, 25 Jan 2022 18:27:36 +0100
shell learning (script practice)
Writing script rules 1. Declaration interpreter #!/bin/bash bash benefits: history, tab, pipeline, redirection, alias 2. Notes 3. Code
1. Write a script to create a user, enter the user name and password, enter the user name as empty, and exit the script
#! /bin/bash
read -p 'Please enter the user name you want to create' a
[ -z $a ] & ...
Posted by fgpsmith on Mon, 24 Jan 2022 14:38:31 +0100
Use Shell script to monitor ports and set Redis to turn off automatic startup
Click Redis installation
Make the file have miscellaneous attributes
chmod a+x /etc/init.d/redis
Crond service related commands( reference resources)
crond service
To install crontab:
yum install crontabs
Service operation instructions:
/sbin/service crond start //Start service
/sbin/service crond stop //Shut down service
/sbin/se ...
Posted by jnewing on Mon, 24 Jan 2022 08:32:02 +0100
Linux teaching item - basic environment and command teaching (including practical shell script)
Preliminary preparation (Linux system is installed by default)
Demo system:
Ubuntu standalone system Linux The-Land-Like-as-A-Picture 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxVirtual machine Vmware 15 CentOS 7
1. Network configuration:
Independent system
Configuration is complet ...
Posted by theinfamousmielie on Sat, 22 Jan 2022 23:02:04 +0100
Shell Programming and Variables
1. Overview
1. Concepts
1) What is a shell:
shell Is a command interpreter, which is responsible for directly talking with the user at the outermost level of the operating system, interpreting the user's input to the operating system, processing the output of a wide variety of operating systems, and outputting to the screen for feedback ...
Posted by khujo56 on Fri, 21 Jan 2022 12:08:54 +0100
shell script Basics - variables
What are variables?
Variable is an indispensable part of any language, which is used to store all kinds of data. Scripting languages usually do not need to declare types before using variables, but only need to assign values directly. Environment variables: some special variables will be used by shell script or operating system environment to ...
Posted by aboali on Fri, 21 Jan 2022 07:53:12 +0100
[Linux] deeply understand Shell usage, from getting started to mastering
I Shell background
1.1 GNU plan
Tips: The GNU Project is a free software, mass collaboration project that Richard Stallman announced on September 27, 1983. Its goal is to give computer users freedom and control in their use of their computers and computing devices by collaboratively developing and publishing software that gives everyon ...
Posted by John_wilson on Thu, 20 Jan 2022 01:28:05 +0100
Simple use of awk command in Linux system
Reference address:
Introduction to awk
awk is an application for processing text files. Almost all Linux systems come with this program. It processes each line of the file in turn and reads each field in it. awk may be the most convenient tool for text files with the same format per line, such as logs and CSV.
1. Basic usage
The basic ...
Posted by dietkinnie on Thu, 20 Jan 2022 00:46:44 +0100
Shell programming and variables
1, Overview
1. Concept
1) What is a shell:
shell It is a command interpreter, which is at the outermost layer of the operating system. It is responsible for directly talking with the user, interpreting the user's input to the operating system, processing various operating system output results, and outputting them to the screen for feedb ...
Posted by badapple on Wed, 19 Jan 2022 17:42:00 +0100