This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Bashrc Location ((exclusive)) -
file ~/.bashrc If .bashrc doesn’t exist, you can create it:
Here’s a quick guide to understanding where .bashrc is (or should be) located, and how to find it on your system. | File | Typical location | When it’s used | |------|----------------|----------------| | User-specific .bashrc | ~/.bashrc | Interactive non‑login shells (e.g., new terminal window) | | System-wide bashrc | /etc/bash.bashrc or /etc/bashrc | All users (depends on distro) | ~ means your home directory: /home/your_username on Linux/macOS, or /c/Users/your_username on Git Bash (Windows). How to check if you have a .bashrc ls -la ~/.bashrc Or use file to see if it’s a regular file, symlink, etc.: bashrc location
touch ~/.bashrc Then add your custom aliases, functions, PATH changes, etc. A common minimal example: file ~/