How can I open a new terminal window from a terminal in linux?
210 Answers
That's system specific. On KDE, just type konsole. On Gnome, it's gnome-terminal. What should work on every X system is xterm.
Edit: Removed the bit about $TERM, as it is an "identifier for the text window’s capabilities" and not necessarily the name of an executable binary.
I think what you want is:
Ctrl+Shift+T -> new tab
or
Ctrl+Shift+N -> new terminal
1The command that I set to run on startup is "x-terminal-emulator" and that opens the terminal we all know and love.
I recommend using an external program such as pcmanfm to launch a new terminal. This way, your root permissions and login state remain in the new terminal.
If you don't have it already, include the first line, otherwise skip this step (or don't, it won't reinstall):
# apt-get install pcmanfmStart the filemanager pcmanfm
# pcmanfma file manager window will now open, showing your current working directory.
Select this window and press F4. A new
terminalwindow will now open with your current permissions (eg root).pcmanfm, the file manager, can now be closed.
Press ALT + F2, then type-in gnome-terminal or xterm and Enter.
If you just have command line access (via ssh, for example), you should research screen.
I am using xfce4 as my desktop environment (DE) on Arch Linux,
so for me it was xfce4-terminal.
Ctrl+Alt+T should mostly works.
But you might have a different desktop environment (DE).
The command depends on your DE, not on your Linux distro.
For Kde -> konsole
For GNOME -> gnome-terminal
For xfce4 -> xfce4-terminal
For Cinnamon -> x-terminal-emulator
For MATE -> mate-terminal --window
For Unity -> gnome-terminal --profile=Default
For Pantheon -> pantheon-terminal -w ''
for Pantheon DE look at this also
I always do things like this with the disown command.
For example:
lxterminal &disownAnd voila, we have a new lxterminal process that is not preoccupying your former terminal with debugging output. This can be used for most programs, not just terminals so I ended up using it a lot, especially good to know for scripting.
2In Ubuntu, you can do it using xdotool.
To do so, you have to install xdotool with the command:
sudo apt-get install xdotooland then you can use the command below to open up a new terminal window:
xdotool key ctrl+alt+t Additional solution for those running a Linux flavor (Ubuntu etc.) via the Windows Subsystem for Linux:
Shift-click the Linux application icon in your taskbar.
This will open a second terminal window.