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.