IntroToLinux

6. Shell Configuration Files

Types of Configuration Files:

System-wide:

User-specific:

Editing Configuration:

# Edit your bash configuration
nano ~/.bashrc

# Reload configuration without restarting shell
source ~/.bashrc
# or
. ~/.bashrc

Common Configuration Examples:

# Add to ~/.bashrc

# Custom aliases
alias ll='ls -la'
alias la='ls -la'
alias grep='grep --color=auto'

# Custom environment variables
export EDITOR=nano
export BROWSER=firefox

# Add custom directory to PATH
export PATH="$HOME/bin:$PATH"

# Custom prompt
export PS1='\u@\h:\w\$ '

Next: → Practical Lab Environment Setup
Previous: ← Working With The Path Variable
Lesson Home: ↑ Lesson 3: History & Variables Course Home: ⌂ Introduction to Linux