title: How to open a command terminal in Linux?
body: <p>I want to open the terminal (command prompt) on a Linux machine using Java code.
  I know how to open command prompt in windows.The following code i have used in windows</p>
  
  <pre><code>String command= "cmd c/start cmd.exe"
  Runtime rt = Runtime.getRuntime();
  Process pr = rt.exec(command);
  </code></pre>
  
  <p>I need the same thing in Linux.</p>
  
  <p>Thanks for your answers. I would like to run a sh script also.</p>
  
  <p>Whether the following code works.</p>
  
  <pre><code>String command= "usr/bin/xterm myshell.sh";
  Runtime rt = Runtime.getRuntime();
  Process pr = rt.exec(command);
  </code></pre>