Difference Between Shebang Path and `which bash` Path in Bash Scripting Workshop

Hey everyone :waving_hand: :grinning_face_with_smiling_eyes:

In step 7 of the Build Five Programs workshop in the Relational Databases certification, the learner is told to add this shebang to the top of the script file to tell it to use Bash as the interpreter: #!/bin/bash.

However, the which bash command (when run in the workshop VM) returns /usr/bin/bash.

Why the difference in paths? Why is /usr omitted from the shebang path?

Solution: Apparently, in many Linux distributions, /bin and /usr/bin are symbolically linked, or “symlinked”, meaning they refer to the same directory (as far as I understand).

Read more here.