title: Whats the best way to switch user and run multiple commands?
body: <p>Whats the best way to switch user run <strong>multiple commands</strong> and send output from all commands to file?</p>
  
  <p>Needs to be done in one line so something like:
  <code>
  sudo -u user (command1; command2; command3; command4; command5) &gt; out.log 2&amp;1
  </code></p>
  
  <p>Thanks in advance.</p>