NOTES: Linux--First knowledge shell

Source: Internet
Author: User
Tags clear screen

One: Word accumulation

Current: currently

Directory: Directories

Entries: Articles

Default: Defaults

Information: Information

Format: Formatting

Ignore: Neglect

Licensing: Licensing

Two:

1.GNU Bash Description: The shell is the user interface of the Linux system, it receives the user input commands and then sends it into the kernel to execute, it is actually a command interpreter, it explains the user input commands and sends them into the kernel (equivalent to a handset),

Bash is a kind of shell.

2. Feature Brief: File management

User Management

Rights Management

Disk Management

Software Management

Network management

3.bash Shell prompt:

For example "[email protected]/" #

Root: Currently logged in User name

Tianyun: Host Name

/: Directory in which you are currently located

**********************

Examples of SMALL commands:

Date: Query the current system time

WHOAMI: Querying user identities

Useradd User name: Create a normal user

passwd User name: Set a password for the normal user you create

4.shell syntax

Command option Parameters

Command: The body of the entire shell command

Options: Used to decorate commands, usually identified by-,--

Parameters: The object to which the command works

5.bash Basic Features

1. Auto-complete command: Shift key

2. Shortcut keys:

CTRL +

C: Terminate the currently running program

D: Exit, equivalent to exit

L: Clear screen (actually turned over a page)

A: Move the cursor to the front of the command line

E: Move the cursor to the back end of the command line

U: Remove all characters before the cursor

K: Remove all characters after the cursor

R: Search history command, using keywords


ALT +.  esc+. !$: Referencing the last parameter of the previous command

3. Historical command:

A: Cursor up and down keys

B:ctrl+r Search History command (input keyword)

C:! 220 (No. 220 command of the execution History command, if you use the historical command)

D:! The most recent command in the string Search History command that starts with the XXXX character

4. Command aliases: You can give a command a name, easy to use

Example: Alisa tianyun= ' Date '

Then when the input is Tianyun and the execution result of input date is consistent

5. Help command:

1.ls--help

2.man ls

3. Official manuals, etc.


NOTES: Linux--First knowledge shell

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.