Morph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 2 months agoSudo disbelieflemmy.zipexternal-linkmessage-square86linkfedilinkarrow-up1366arrow-down112
arrow-up1354arrow-down1external-linkSudo disbelieflemmy.zipMorph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 2 months agomessage-square86linkfedilink
minus-squareHawke@lemmy.worldlinkfedilinkarrow-up11·2 months agoStarts an interactive session as root (or another user when combined with -u)
minus-squareOisteink@lemmy.worldlinkfedilinkarrow-up4·2 months agoIt provides a login shell - like su - So you get the full environment from that user
minus-squaresem@piefed.blahaj.zonelinkfedilinkEnglisharrow-up1arrow-down1·2 months agoNot everything is all about you, dude.
minus-squarerem26_art@fedia.iolinkfedilinkarrow-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
minus-squaremumblerfish@lemmy.worldlinkfedilinkarrow-up3·2 months agoGives you a shell where you basically are sudo for every command.
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.
Not everything is all about you, dude.
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 shellGives you a shell where you basically are sudo for every command.