Linux learning notes - Shell advanced
catalogue
Shell operator
Arithmetic operator
Boolean operator
Logical operator
String operator
File test operator
echo print data
test command
number
character string
File test
Shell process control
if
case
for
while
break
continue
Shell function
Shell operator
Arithmetic operator
#! /bin/bash
a=20
b=10
val=`expr $a ...
Added by jdog on Sat, 05 Feb 2022 13:51:49 +0200
Signal capture trap tool in shell
Signal capture trap, which captures a specified signal and executes predefined commands. For example, pressing Ctrl+C will terminate the execution of the script. In fact, the system sends a SIGINT signal to the script process. The default way to process the SIGINT signal is to exit the program. If you want to not quit the program at Ctrl ...
Added by Crys on Thu, 03 Feb 2022 20:57:17 +0200
Detailed explanation and examples of function variable scope, variable type, common variable, global variable, environment variable and local variable in shell
Overview of function variables
Variable scope: the scope of Shell variables is the effective scope of Shell variables
Variable type
Common variables are also called global variables. The scope of common variables is the current shell script program file, including the functions in the script. Environment variables: the current shell ...
Added by Illusionist on Wed, 02 Feb 2022 12:15:01 +0200
Linux command line and shell Scripting v3 Richard Blum
1. Initial Linux shell
Linux kernel
System memory managementSoftware program managementHardware device management: character type, block, network device fileFile system management GNU tools: coreutils packageGraphical desktop environment: X Window, KDE, GNOME, UnityApplication software
2. Enter the shell
Set terminal color
setterm -for ...
Added by kecebong_soft on Mon, 31 Jan 2022 03:31:09 +0200
N63044 - week 6
Advanced shell script 1. ubuntu network configuration (61 minutes) 2. shell script programming purchase price while loop and control (46 minutes) 3. shell script advanced shift and select(49 minutes) 4. shell script advanced function implementation (57 minutes) 5. shell script advanced function recursion and signal capture (61 minutes) 6. shell ...
Added by centered effect on Sat, 29 Jan 2022 18:52:48 +0200
Linux_ Authority management
Authority management
Permission viewing and reading
Permission view
ls -l file #View file permissions
ls -ld dir #View directory permissions
| rw-r–r-- | . | 1 | root | root | 0 | Apr 12 10:57 | westos [1] [2] [3] [4] [5] [6] [7] [8] [9]
[1] # file type #-Ordinary file #d directory #l soft connection #b. fast equipment #c char ...
Added by []InTeR[] on Fri, 28 Jan 2022 17:30:21 +0200
Take you ten days to easily complete the Go micro service series (IX. link tracking)
preface
We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows:
Environment construction
Service splitting
User services
Product service
Order service
Payment services
RPC service Auth authentication
Serv ...
Added by kee1108 on Fri, 28 Jan 2022 07:42:39 +0200
Compliance baseline / safety compliance inspection is enough! (unfinished)
xdm! I'm back! Fight the undead cockroach, fight the undead Li Qiang
Compliance baseline
Host security compliance check
This article contains 16 common safety compliance checks!
Xiao Li said:
Search and replace files Syntax: sed option's / search content / replace content / action 'file Where s: represents search/ Separator (can be cus ...
Added by Xurion on Fri, 28 Jan 2022 01:15:42 +0200
Take you ten days to easily handle the Go micro service series
preface
We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows:
Environment construction
Service splitting
User services
Product service
Order service
Payment services (this article)
RPC service Auth authen ...
Added by davestevens_uk on Thu, 27 Jan 2022 01:46:24 +0200
Docker common commands
Image command
1. List all local images
docker images
docker image ls
2. Label the local image
docker tag [image_name]:[tag] [new_image_name]:[new_tag]
3. View image details
docker inspect [image_name]:[tag]
4. View the image history
# Display the specific content of each layer
docker history [image_name]:[tag]
5. Search image
# ...
Added by cafrow on Thu, 27 Jan 2022 01:38:19 +0200