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