my comments highlighted between yours
Whenever I want to either install a bunch of things or modify some stuff I pretty much always do "sudo -s" so it stays in a root privilege until I'm done doing everything then just close out the terminal.
Can you give us an example of "a bunch of things or modify some stuff" ? sudo -s is the same as sudo --shell
I've only just started one of those Unix / Linux courses that bleeping has in the offers. From what I can understand there is su for the root account to perform stuff. Then sudo allows the user to perform root privelages under their own account.
Courses are good, lol. "sudo -i" will give you basically the same privileges as "su" without having to edit or enter the sudoers file.
Am I wrong to be using sudo -s? or should I use other ones i've seen like -i , -u, etc...?
As mentioned above.
I honestly try to avoid using su unless I need to add an account to the sudoers file which I still struggle with when toying with plain debian.
What environment are you under currently? Last I heard, you were in Ubuntu trying to paste a URL on the desktop, and then looking to try Linux Mint.
Todd C. Miller is the author and maintainer of the sudo manual
He worked, last I heard, for Dell Security, and has been maintaining sudo as a sideline for over 20 years. I have his email address from two years ago when he was endorsing some comments I had on Bash scripts, so if we can't find your answer easily, I might try asking him?
BTW - just read hollowface's comments, added whilst I was penning this, and would endorse same. A lot depends on which Distro, and "family" you are using, too, eg Debian, Debian-based, RPM, RPM-based, Arch, Gentoo, &c, as to how much you might need to use root privileges, and to what extent
Edited - added BTW
Edited by wizardfromoz, 27 November 2016 - 04:22 PM.