What is the. bashrc file?

Source: Internet
Author: User
Tags aliases
The relevant explanations in the online Help file that you see Using the Man Bash command are as follows:
. bashrc-the individual Per-interactive-shell startup file.

This file mainly preserves some personal personalization settings, such as command aliases, paths, and so on. Here's 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-chars '

The example defines the path, language, command alias (always with the-I parameter when using RM Delete command requires user confirmation, and the LS command lists the file list with color display).
After each modification. BASHRC, use source ~/.BASHRC (or. ~/.BASHRC) can immediately load the modified settings to make it effective.

The. BASHRC is typically called explicitly in the. bash_profile file. When you log in to Linux to start bash, you will first read the ~/.bash_profile file so that the ~/.BASHRC is executed and your personalization will take effect.

What is the. bashrc file?

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.