title: How to get output of OS command from Jupyter notebook?
body: <p>I am running Jupyter notebook on a server (python 3).</p>
  
  <p>Want to see output of OS command (any OS command - this is just example):</p>
  
  <pre><code>output = os.system("pwd")
  </code></pre>
  
  <p>When I do print of it:</p>
  
  <pre><code>print (output)
  </code></pre>
  
  <p>Response is <code>0</code>.</p>
  
  <p>How to get a simple output (like in CLI)?</p>
  
  <p>Thanks.</p>