Skip to main content

Bashrc Location Better -

This is the most common source of confusion. The .bashrc file is run every time you open a terminal.

touch ~/.bashrc

| File | Typical location | When it’s used | |------|----------------|----------------| | | ~/.bashrc | Interactive non‑login shells (e.g., new terminal window) | | System-wide bashrc | /etc/bash.bashrc or /etc/bashrc | All users (depends on distro) | bashrc location