Fedora Settings Command alias

Source: Internet
Author: User

Alias with command

Example:

Alias ggw= "g++-g-wall"

GGW is a custom alias, can be modified according to the settings, equal to the following is the specific meaning of the alias, in the terminal input GGW like when the input equals the following command

One thing must be noted: there can be no spaces on both sides of the equals sign

In addition, it is better to use double quotation marks for commands after equals

If you want to work permanently, it is recommended to write to the ~/.BASHRC or /etc/bashrc file directly in the last line.

Written in ~/.BASHRC is only valid for the current user, that is: no one else can use this alias

Written in ~/ETC/BASHRC is valid for any user, i.e.: Anyone can use this alias

After writing, you can use the source ~/.BASHRC or SOURCE/ECT/BASHRC to make the alias settings effective according to the file you are writing.

Fedora Settings Command alias

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.