4 ms·
nitpicking but why would someone type `sudo su` vs `sudo -i`
by project2501a 8mo ago
nitpicking but why would someone type `sudo su` vs `sudo -i`
- Bjartr 8mo agoI've mostly only ever seen `sudo su` in tutorials, so someone who's only familiar with the command through those is one possible reason why.
- flounder3 8mo agoMuscle memory for folks who have been doing it since before -i was an option. I still instinctively type `sudo su -` because it worked consistently on older deployments. When you have to operate a fleet of varying ages and distributions, you tend to quickly learn [if only out of frustration] what works everywhere vs only on the newer stuff. `sudo su - <user>` also seems easier for me to type than `sudo -i -u <user>`