Better BASHing: How to get the most out of the shell
summary
Covers concrete Bash mechanics: which files to edit and why (.profile vs .bash_profile vs .bashrc), how to keep environments consistent, and prompt tricks including PS1 and PS2 plus colored segments and a git-branch function that shows branch names. Shows productivity tools: keyboard shortcuts, aliases vs functions (with $1/$# examples), history tuning like HISTCONTROL=ignoreboth and HISTTIMEFORMAT, job control with bg/fg and nohup &, and when to use su vs sudo.
AI-written summary · about
chapters (13)
- 0:00Introduction to BASHing
- 1:44History of BASH
- 5:20BASH configuration files
- 12:51Customizing the prompt
- 17:26Colorizing the prompt
- 19:14Dynamic prompt components
- 20:20Keyboard shortcuts
- 21:47Creating aliases
- 25:40BASH functions
- 28:31Command history tweaks
- 32:44Job control in BASH
- 36:14Running as root
- 38:44Final tips and man page
