📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Linux Command Line Bash Profile Files

Bash Profile Files

4 min read
~/.bashrc runs for interactive non-login shells and is where you put aliases and prompts. ~/.bash_profile runs for login shells and is for PATH and exports. Have .bash_profile source .bashrc so all settings apply.

Shell Startup Files

FileWhen Loaded
~/.bashrcInteractive non-login shells
~/.bash_profileLogin shells
/etc/profileSystem-wide login
/etc/bash.bashrcSystem-wide interactive