Answer the question
In order to leave comments, you need to log in
What does 'sudo -E bash -' do?
What does "sudo -E bash -" mean? For example, in the command - "curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -".
How 'bash -' works. What will he launch?
Answer the question
In order to leave comments, you need to log in
Runs a script as root, preserving environment variables
Fromman sudo
-E, --preserve-env
Indicates to the security policy that the user wishes to preserve their existing environment vari-
ables. The security policy may return an error if the user does not have permission to preserve the
environment.
Partial answer: Curl will pull the file and pass it through the pipe to be executed as root.
Full answer: man curl; man sudo; man bash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question