I’ve been typing
sudo bash for too long!
sudo -i for the win!
-i calls the login shell for the specified (
-u) or implied root user, so the shell might be something other than bash; on my Mac,
sudo -i lands me in
sh and not bash, so I still need to
sudo bash 🤦♂️.