Basic operation of Linux basic Operation 1 command line bash

Source: Internet
Author: User
Tags command line

1 shell (shell) is the user and the operating system at the bottom (usually the kernel) interaction between the intermediary program, responsible for the user instructions, operations to the operating system at the bottom

The shell is divided into two types

Cui:command line Interface Linux inside CUI refers to bash

Gui:graphical line Interface The default GUI is Gnome

2 Some basic concepts of bash

1 Prompts: #和 $

#表示的是以root的身份登录, $ indicates that you are logged on as a normal user

2 commands are generally composed of three parts: command option parameters

3 We can automatically fill the command or filename with the TAB key on the keyboard

Bash records our previous commands and can be viewed through the history command

4 We can browse the previous command through the upper and lower keys on the keyboard

5 bash can simplify commands by using the following commands

!! Repeat previous command

! character repeats the previous command preceded by a specified character

!num execute command by history ordinal

!? ABC repeat the order that contains ABC

!-n Repeat n command before the command

6 The wildcard character of the BASH shell

* Match 0 or more

? Match any one of the characters

[0-9] matches a number range

[ABC] matches any character in the list

[^ABC] matches any character outside the list

3 Common operations

1 View host Name

2 View the underlying details of the system

3 by appending an ampersand after the command, you can put the command in the background to run

Related Article

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.