title: Why using curl | sudo sh is not advised?
body: <p>While I was reading the <a href="https://wayback.archive.org/web/20150426140301/http://doc.rust-lang.org/book/installing-rust.html" rel="noreferrer" title="Installing Rust (2015-04-26)">introduction to the Rust programming language</a>, I came across the installation method which asks to use the following command</p>
  
  <pre><code>curl -sf -L https://static.rust-lang.org/rustup.sh | sudo sh
  </code></pre>
  
  <p>with a note of caution that this is not the most trusted way of installing an application. Can anybody provide me the details about how this command can be dangerous and are there any methods to protect yourself from its effects?</p>