I have the following doubt. In a tutorial related to a software installation that I am following say that I have to execute the following commands (I am doing it into an ssh shell, so this list of steps end with the
sudo -s apt-get update apt-get install -y build-essential libtool libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf automake screen exit
My doubts are:
What exactly does the
-s parameter do after
Searching on the web I found that:
‑s [command] The ‑s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in the password database. If a command is specified, it is passed to the shell for execution via the shell's ‑c option. If no command is specified, an interactive shell is executed
It seems to me that the
sudo -s execute a command using the environment variable of the shell.
But this is not clear for me: in this case what is the command executed with the environment variable? (it only executes
sudo -s and not
sudo -s [command]).