title: Bash/WSL - How to run command as root?
body: <pre><code>&gt;ubuntu1804.exe -c "echo $USER"
  mpen  
  </code></pre>
  
  <p>That runs the command as me, how do I run it as root?</p>
  
  <p>The help page doesn't even mention <code>-c</code> </p>
  
  <pre><code>&gt;ubuntu1804.exe help
  Launches or configures a Linux distribution.
  
  Usage:
      &lt;no args&gt;
          Launches the user's default shell in the user's home directory.
  
      install [--root]
          Install the distribuiton and do not launch the shell when complete.
            --root
                Do not create a user account and leave the default user set to root.
  
      run &lt;command line&gt;
          Run the provided command line in the current working directory. If no
          command line is provided, the default shell is launched.
  
      config [setting [value]]
          Configure settings for this distribution.
          Settings:
            --default-user &lt;username&gt;
                Sets the default user to &lt;username&gt;. This must be an existing user.
  
      help
          Print usage information.
  </code></pre>