On Wed, Mar 26, 2025 at 02:15:03PM +0300, J wrote:
> > In my opinion, "sudo -i" might be added to the wiki articles. I would
> > prefer to see a warning concerning compound shell commands in *sudo* docs.
> >
> > J, my impressions is that you read some docs strongly suggesting to
> > prefix every command instead of just becoming root.
> 
> 
> Actually it is easier than this. I couldn't use a *root *account on *Live
> CD*, at least I didn't know how, so I had to stick with *sudo*.
> 
> And i thought *sudo -i*, you speaking about, is something like
> *--interactive*, which is not, how i see now...

The long form is "--login", not interactive. But the "-i" stands
in for the interactive shell it gives you. Go figure :-)

But yes, in short: with "sudo -i" you enter a shell where you are
root, until you leave it with "exit" (or shorter: CTRL-D), which
puts you back where you were before.

> Will this command (
> 
> for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do
> mount -B $i /mnt/$i; done)
> 
> 
> work with* root?* I will try to test.

I fully expect it to, yes.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to