Linux command--alias

Source: Internet
Author: User
Tags aliases

Alias with no arguments and the-p option prints the list of aliases in the form alias Name=value on standard output. When arguments

was supplied, an alias was defined for each name whose the value is given. A trailing space in value causes the next word to being checked for

Alias substitution when the alias is expanded. For each name in the argument list for which no value is supplied, the name and value of

The alias is printed. Alias returns true unless a name is given for which no alias has been defined.


Note aliases is not expanded by default in Non-interactive shell, and it can is enabled by setting the expand_aliases she LL option using

Shopt.


Alias command

function:

Set the command alias to simplify the long command, and when using alias, the user must use single quotation marks to cause the original command to be used to prevent special characters from causing an error.

The alias command is stored in Bash's initialization file/ETC/BASHRC if it is to be permanently active.

Syntax:
alias (option) (parameter)
Options:
-P: Prints the directory alias parameters that have been set
:
Command alias = actual command
instance:
alias New command = ' original command-options/Parameters '

Alias L = ' Ls-lsh '

Remove Alias: Unalias alias

To view aliases for system settings: type Alias



This article is from the "Little Bunny" blog, make sure to keep this source http://10551983.blog.51cto.com/10541983/1679927

Linux command--alias

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.