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
Under Gnome, it's gnome-terminal.
gnome-terminal
Under KDE, it's konsole.
konsole
Or you could use the more generic terminal program xterm.
xterm
You'll probably want to use options with most of this, so look up the man pages for the one you want.