Bashrc: Location
# Usage: mkcd new_folder
The .bashrc file is essentially a script. It runs every time a new interactive terminal opens. Here are the most common use cases:
This file contains configurations that apply to every user on the system. You generally need sudo (administrative) privileges to edit this file. It is best to leave this file alone unless you are a system administrator. How to Open and Edit the .bashrc File bashrc location
– ~/.bashrc works fine, usually located at C:\Users\YourName\.bashrc
This file contains customizations that apply only to you . If you add an alias here, other users on the same computer won't be able to use it. This is the safest place to make changes. 2. The System-Wide bash.bashrc Location: /etc/bash.bashrc (or /etc/bashrc on some systems) # Usage: mkcd new_folder The
Set variables needed by your applications.
One common mistake is editing the .bashrc file and expecting the terminal to change immediately. Because Bash only reads this file when a new session starts, you have two choices to apply your changes: You generally need sudo (administrative) privileges to edit
(e.g., SSH, tty login): /etc/profile → first of ~/.bash_profile , ~/.bash_login , ~/.profile → not .bashrc by default (but often ~/.bash_profile sources ~/.bashrc manually).