How can I open a new terminal window from a terminal in linux?

How can I open a new terminal window from a terminal in linux?

2

10 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.

3

I think what you want is:

Ctrl+Shift+T -> new tab

or

Ctrl+Shift+N -> new terminal

1

The 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.

  1. 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 pcmanfm
  2. Start the filemanager pcmanfm

    # pcmanfm

    a file manager window will now open, showing your current working directory.

  3. Select this window and press F4. A new terminal window will now open with your current permissions (eg root).

  4. pcmanfm, the file manager, can now be closed.

4

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

2

I always do things like this with the disown command.

For example:

lxterminal &disown

And 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.

2

In Ubuntu, you can do it using xdotool.

To do so, you have to install xdotool with the command:

sudo apt-get install xdotool

and 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like