title: Execute a shell command
body: <p>I want to execute a shell command in <strong>Rust</strong>. In <strong>Python</strong> I can do this: </p>
  
  <pre><code>import os
  cmd = r'echo "test" &gt;&gt; ~/test.txt'
  os.system(cmd)
  </code></pre>
  
  <p>But Rust only has <code>std::process::Command</code>. How can I execute a shell command like <code>cd xxx &amp;&amp; touch abc.txt</code>?</p>