Linux entry (1)-Basic commands and linux entry commands
This series of Linux beginners are the basic content I have summarized on the basis of "laruence's Linux private house dish", mainly to record my learning process, but also to facilitate your brief understanding.
Linux Distribution is Ubuntu rather than CentOS recommended in books. We recommend that you install dual systems instead of virtual machines.
Code on github:Linuxpractice
Linux basic commands
1) switching between X window and Command Line Mode
By default, Linux provides six terminals for users to log on and perform operations. To switch to these six terminals, run [Ctrl] + [Alt] + [F1] ~. [F6];
How to switch from six Terminal statements to X window: [Ctrl] + [Alt] + [F7];
How to open Terminal in X window: [Ctrl] + [Alt] + [T];
2) execute commands in Command Line Mode
1. Basic Content
$ Command [-options] parameter1 parameter2
Command Option parameter 1 parameter 2
The preceding content is differentiated by spaces, but no matter how many consecutive spaces are there, it is regarded as one;
If the command is too long, you can use \ To perform carriage return escape;
Command case sensitivity;
2. date and Time: $ date
Show Calendar: $ cal
Calculator: $ bc exit calculator: $ quit
3. hotkeys
[Tab] "command completion" and "file completion"
[Ctrl] + [c]: If an incorrect command or parameter is entered, you want to stop the current program.
[Ctrl] + [d]: End of keyboard input. You can also use exit instead.
4. Display error messages
If an incorrect command is entered or the command cannot be executed, bash displays the result below.
5. man page and info page
# Man + command can view the details of the current command,
Use [Space]/[Page Up]/[Page Down] to flip the Page, [Home] to reach the first Page, and [End] to reach the last Page.
Search for the specified content in the details :(/).
6. Switch the Supported languages:
$ Echo $ LANG: view the current language;
$ LANG = en_US: Set the language to English.
LANG is the system variable.
7. A text editor: nano
$ Nano text.txt