Linux entry (1)-Basic commands and linux entry commands

Source: Internet
Author: User

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

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.