Bashrc
Bashrc, typically ~/.bashrc, is a shell script that Bash reads and executes for interactive non-login shells. It is used to customize the user’s environment and behavior of the shell. The file is located in the user's home directory and is often sourced by other startup files to ensure interactive features are available.
Purpose and contents: bashrc commonly defines aliases and functions, exports environment variables, adjusts the shell prompt
Loading and scope: Interactive login shells typically read system-wide and user-wide startup files, which may source
Common patterns: a typical bashrc may define aliases (for example, ll='ls -la'), adjust PATH, set EDITOR, configure
Usage tips: after editing, apply changes with source ~/.bashrc or . ~/.bashrc. For portability across environments, keep