First, the basic knowledge
Here you'll learn about shell fundamentals and some of the knowledge points.
Concept: The shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command entered by the user and feeds it into the kernel to execute.
Category: There are several types of shells in Linux, the most common of which are Bourne shell (SH), C Shell (CSH), and Korn shell (Ksh).
View the shell types supported by Linux
Cat/etc/shells
echo "Options" "Output content"
-e support for character conversions with backslash control
-N cancels the line break at the end of the output
ECHO-E: Control conversion table with support for backslash support
Display color:
Format: \e[; m...............\e[; m
Commonly used: \e[31;1m--------\e[0m
Text color: 30 = black, 31 = red, 32 = green, 33 = yellow, 34= blue, 35 = Magenta, 36 = cyan, 37 = white, 39 = end
Shading Color: 40 = black, 41 = red, 42 = green, 43 = yellow, 44= blue, 45 = Magenta, 46 = cyan, 47 = white, 49 = end
Special Control Display:
\e[0m Close All Properties
\e[1m Setting High brightness
\e[4m Underline
\e[5m Flashing
\E[7M Reverse Display
\e[8m blanking
"Shell"--basic knowledge (1)