Command Line BASH basic operations, bash basic operations

Source: Internet
Author: User

Command Line BASH basic operations, bash basic operations

 

 

As mentioned above, we should try to use the gnome gui as little as possible, instead of using BASH command lines.

SHELL

Shell is the Shell of the operating system Kernel. Because we cannot directly operate the Kernel of the operating system, we can only operate through Shell. Shell can be simply understood as a proxy for sending commands to the operating system.

See the following two figures.

 

GNOME refers to the graphical interface. BASH refers to the command line, that is, the Terminal under CentOS.

BASH

BASH can be simply understood as the Terminal in the system.

$ Indicates a common user, and # indicates a root user, as shown in.

 

 

Practice:

Simplify command input using the TAB key

You can use the TAB key to automatically complete the command name and file name, but cannot automatically complete the parameters.

 

If you cannot determine whether the entered command is unique, you can press the TAB key twice in a row. BASH will automatically list all matching commands, as shown in.

History

 

 

Wildcard

The wildcard here is exactly the same as the regular expression rules. It is not difficult to understand the regular expression.

These wildcards are generally used to match file names.

 

Practice:

Switch user

Sometimes, we need to use the permissions of the root user, but do not want to log out and then log on, you can achieve this by switching the user.

 

Practice:

Job Management

A job can be understood as a job manager in windows.

 

Running the jobs command is equivalent to opening the Job Manager in windows. You can view the applications currently opened.

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.