Linux Basic Operations 9 understanding and Learning Bash

Source: Internet
Author: User
Tags echo command

A know bash this shell

1 management of the entire computer hardware is actually the operating system's core, this kernel needs to be protected, so our average user can only through the shell to communicate with the kernel, so that the kernel to achieve the work we want to hit.

2 as long as the interface of the application can be manipulated can be called shell

3 Bash Shell features

Command memory function history

command and file completion functions

Command alias Settings feature (alias)

Job control, front desk, background control

Program Scripts

Wildcard characters

Variable function of two shell

1 environment variables such as Path,home,mail,shell, and so on, in order to distinguish them from custom variables, environment variables are usually represented as uppercase characters

2 We can use the echo command to display the variable, but the variable must precede the character $ before it is displayed.

3 Basically, the order in which commands run can look like this

1 executing commands with a relative/absolute path

2 by alias find the command execution

3 executed by Bash's built-in command

4 by $path This variable in order to find a command to execute

4 Bash default key combination

CTRL + C terminate the current command

Ctrl+d input End EOF

Ctrl+m is just enter.

Ctrl+s pause the output of the screen

CTRL+Q restores the output of the screen

Ctrl+u the entire line of commands at the prompt

Ctrl+z suspend the current order

5 wildcard characters and special symbols

* Represents 0 to infinitely many arbitrary characters

? Representative must have one arbitrary character

[] The same representative must have a character within the brackets, for example [ABCD] represents one of the four

[-] For example [0-9] represents all numbers between 0-9

[^] For example [^ABC] Other characters that are non-ABC

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.