Linux Learning Path: command aliases, history, and command lookup execution order

Source: Internet
Author: User

First, the command alias

Alias rm= ' Rm–i ': The prompt will appear at any time when the command is deleted; alias Vi=vim

Alias does not add parameters, so the command alias is displayed in the system.

Unalias Canceling aliases

Ii. Order of History

History 6 shows the last 6 records

-C clears the current Shell's history record

-W writes history to file (default: ~/.bash_history)

The maximum number of records is controlled by the variable histsize.

Description: The history command is automatically written to the user after logging out of the login: ~/.bash_history file, which reads the record after the user logs on to bash.

“! "The Use of:

! 6 implementation of sixth record

!! Execute previous record

! Man executes the most recent record that starts with man

Third, the order of Linux lookup execution commands is

Type–a Order of command execution results

Also in the following order:

Alias> commands in the built-in commands > $PATH variables

Linux Learning Path: command aliases, history, and command lookup execution order

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.