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