How to open a command terminal in Linux?

后端 未结 8 2174
情歌与酒
情歌与酒 2020-11-30 09:45

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

8条回答
  •  感动是毒
    2020-11-30 09:57

    Under Gnome, it's gnome-terminal.

    Under KDE, it's konsole.

    Or you could use the more generic terminal program xterm.

    You'll probably want to use options with most of this, so look up the man pages for the one you want.

提交回复
热议问题