title: How do i run a UNIX terminal from Java and send commands to it?
body: <p>Regarding the topic, the code below </p>
  
  <hr>
  
  <pre><code>    Process proc = null;
      try {
          String[] cmdss= {"gnome-terminal"};
  
  
          proc = Runtime.getRuntime().exec(cmdss, null, wd);
      } catch (IOException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <hr>
  
  <p>Runs the terminal form Ubuntu.</p>
  
  <p>How do I issue commands into the terminal after running the termnal?</p>
  
  <p>eg: running the terminal and run command such as "ls" etc.</p>