OMG. There’s literally more ignorance and bullshit than words in that sentence. It is so wrong that not even the opposite is true. I hope that was sarcasm - in which case I draw my hat because it would be a true peace of art.
Before voting me down, be sure to
man environ
and be sure you’ve understood at least what the environment variables do. If that is too hard for you, at least find out what the difference between a binary and a UID might be.
sudo -i starts a login shell as the specified user. Login shell means it’ll read that user’s bashrc/zshrc/whatever other login files and apply those. If no user is specified, then it’ll login as root, so you get a root shell
sudo -i
ooo what’s that one do?
Starts an interactive session as root (or another user when combined with -u)
It provides a login shell - like
So you get the full environment from that user
…Yes, I know.
Gives you a shell where you basically are sudo for every command.
OMG. There’s literally more ignorance and bullshit than words in that sentence. It is so wrong that not even the opposite is true. I hope that was sarcasm - in which case I draw my hat because it would be a true peace of art.
Before voting me down, be sure to
sudo -istarts a login shell as the specified user. Login shell means it’ll read that user’s bashrc/zshrc/whatever other login files and apply those. If no user is specified, then it’ll login as root, so you get a root shell