Morph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 2 months agoSudo disbelieflemmy.zipexternal-linkmessage-square101linkfedilinkarrow-up1380arrow-down112
arrow-up1368arrow-down1external-linkSudo disbelieflemmy.zipMorph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 2 months agomessage-square101linkfedilink
minus-squarerem26_art@fedia.iocakelinkfedilinkarrow-up4·2 months agosudo -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 -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