Linux under alias command

Source: Internet
Author: User
Tags egrep

function Description:sets the alias of the directive.
Syntax: alias[alias]=[directive name]
parameters: If no parameters are added, all current alias settings are listed.
for example: [email protected]:~$ alias
                  alias egrep= ' egrep--color=auto '
                  alias fgrep= ' Fgrep--color=auto '
                   alias grep= ' grep--color=auto '
                  alias l= ' ls-cf '
                   alias la= ' ls-a '
                  alias ll= ' ls-alf '
                  alias ls= ' ls--color=auto '
Stating : User can use alias, custom command aliases. If you enter alias only, you can list all of the current alias settings. Alias is only valid for the login operation. To automatically set an alias every time you log in, you can set an alias for the directive in/etc/profile or your own ~/.BASHRC.

Also, if you want to give each user an alias, please add alias la= ' ls -al ' line to the last side of the/ETC/BASHRC, BASHRC is the configuration file of the environment variable/ETC/BASHRC and ~/.BASHRC The difference is that one is set to a system-wide one that is set up for single-user use.

alias can be used to turn a long command into any of our favorite short

if you want to make it permanent, write it into/ETC/BASHRC.

Linux under alias command

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.