you are viewing a single comment's thread
view the rest of the comments
[–] 14 points 9 months ago (8 children)
  • [–] 13 points 9 months ago (7 children)
  • [–] 3 points 9 months ago (6 children)
  • [–] 11 points 9 months ago (3 children)

    Starts an interactive session as root (or another user when combined with -u)

  • source
  • parent
  • hideshow 3 child 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