Detailed description of alias commands in linux

Source: Internet
Author: User
Tags egrep
Detailed description of alias commands in linux: sets the alias of commands. Www.2cto.com syntax: alias [alias] [command name] parameter: If no parameter is added, all current alias settings are listed. Example: ermao @ lost-desktop :~ $ Alias... detailed description of the alias command in linux: sets the alias of the command. Www.2cto.com syntax: alias [alias] = [command name] parameter: If no parameter is added, all alias settings are listed. For example, ermao @ lost-desktop :~ $ 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: you can use alias to customize the alias of the command. If you only enter alias, all current alias settings can be listed. Alias is valid only for this login operation. If you want to automatically set an alias for each login, you can go to/etc/profile or your own ~ /. Set the alias of the command in bashrc. Also, if you want to add the alias la = 'ls-Al' line to the end of/etc/bashrc, bashrc is the environment variable configuration file/etc/bashrc and ~ /. The difference between bashrc and bashrc is that it is set for all systems and for single users. alias can be used to change a long command into any short one we like. if you want to take effect permanently, write this command into/etc/bashrc.
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.