Modify and take effect of the linux. bashrc file

Source: Internet
Author: User
Linux. the following is an example of how to modify and take effect of the bashrc file: .bashrc-Theindividualper-interactive-shellstartupfile.www.2cto.com... linux. modify and take effect of the bashrc file :. bashrc-The individual per-interactive-shell startup file. the file www.2cto.com stores personal personalized settings, such as command aliases and paths. The following is an example: # User specific aliases and functions PATH = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin: /usr/local/sbin "LANG = zh_CN.GBK export path lang alias rm = 'rm-I 'alias ls ='/bin/ls-F -- color = tty -- show-control- the chars example defines the path, language and command alias (the-I parameter is always added when you use rm to delete the command. you need to confirm it. The ls command is used to display the file list in color ). Every time www.2cto.com modifies. bashrc, use source ~ /. Bashrc (or .~ /. Bashrc) immediately load the modified settings to make them take effect. Generally,. bashrc is explicitly called in the. bash_profile file. When you log on to linux and start bash, it will first read ~ /. Bash_profile file ~ /. Bashrc will be executed, and your personalized settings will take effect.
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.