Linux Learning--bash

Source: Internet
Author: User

Bash:

1. Command history, Command completion

2, Pipeline, redirect

3. Command aliases

4. Command line editing

5. Command line expansion

6. File name Wildcard

7. Variables

8. Programming


command-line editing:

Cursor Jump:

CTRL + A: Skip to the beginning of the command

Ctrl+e: Jump to the end of the command line

Ctrl+u: Delete the cursor to the beginning of the command line

CTRL+K: Delete the cursor to the end of the command line

Ctrl+l: Clear Screen

Command history:

View command history: Historical

-C: Empty command history

-D OFFSET [n]: Delete command at specified position

-W: Save the Command history to the history file

Environment variables

Path: Command Search Path

Histsize: Command history buffer size


The use of command history tips:

!n: Executes the nth command in the command history;

!-n: Executes the reciprocal nth command in the command history;

!: Executes the previous command;

!string: The most recent command in the command history that starts with a specified string

!$: References the last parameter of the previous command;


Linux Learning--bash

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.