title: Linux Shell: useradd options
body: <p>Could anybody give me a little help with the following line:</p>
  
  <pre><code>sudo useradd -c USERNAME new_user | passwd new_user
  </code></pre>
  
  <p>What I am trying to do is add a new user to the system and set up their password all in one line without having to do two commands. When I enter this line it tells me that the user new_user does not exist. Could anybody help me out here or explain to me why this is not working?</p>
  
  <p>Also if there is a better way of doing this then please feel free to let me know.</p>
  
  <p>Thanks you,
  Alex</p>