you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 9 months ago

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

  • source
  • parent