2. Interpreter

2.1. Configuration files

  • ~/.profile

  • ~/.bashrc

  • ~/.bash_logout

  • /etc/bashrc

../../_images/bash-colors.png

2.2. Locale

  • $LANG

  • /etc/locale

2.3. Autocompletion

2.4. New lines

  • "\n"

2.5. #!/bin/bash

  • A.K.A shebang or hashbang

  • Interpretes script as /bin/bash source code

2.6. bash -x

  • shows execution steps

2.7. Comments

  • # at the beginning of the line

2.8. Inline comments

  • # in the middle of the line