"Shell"--basic knowledge (1)

Source: Internet
Author: User

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)

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.