I am following some tutorial to install Ubuntu with full disk encryption. In it, I am asked to boot the installation media into the live session and perform some operations before installing the distro on my laptop. Some of these operations require a root terminal; alternatively the guide tells me to use
sudo -i. However it does not tell me exactly how to use it. For example, in one part says:
You'll want a root terminal for this or use
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero > /dev/sdxy
I tried reading the man page for
sudobut apparently you can use
sudo -i with and without a command so I am a bit confused. Specifically I would like to ask:
How to use
sudo -i in this setting? Please remember that I will be working in a live session.
Also, any explanation of how the option works is very welcome, but try to keep it as simple as possible since I am a very basic user.