Run command on another(new) terminal window The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Open a terminal from the current terminal and run a command in the new terminalRunning multiple shell scripts from one script (nesting ?)How can I make a script that opens terminal windows and executes commands in them?How to run a script without closing the terminal?How to write a shell script that runs commands in separate terminals?alias nested stringI accidentally made my terminal open another terminal when it starts. How can I fix it?how to run command in an already opened terminal through a shell scriptFrom a bash script, send commands to a terminal windowHow do I get xdotool to register a new gnome-terminal window?Open XFCE Terminal Window and Run command in same WindowOpen a terminal from the current terminal and run a command in the new terminalCommand to open new tab in the current terminal and pass command to run on new tabRun specific command in specific instance of terminal windowRun another command when previous command completesIs it possible to open terminal from run box and use ' — ' to run a command to pen a file in some other directory?
Cooking pasta in a water boiler
Why can't devices on different VLANs, but on the same subnet, communicate?
How do you keep chess fun when your opponent constantly beats you?
Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?
Python - Fishing Simulator
Can a novice safely splice in wire to lengthen 5V charging cable?
Would an alien lifeform be able to achieve space travel if lacking in vision?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
What aspect of planet Earth must be changed to prevent the industrial revolution?
Is there a writing software that you can sort scenes like slides in PowerPoint?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Simulating Exploding Dice
First use of “packing” as in carrying a gun
What is special about square numbers here?
Single author papers against my advisor's will?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
How long does the line of fire that you can create as an action using the Investiture of Flame spell last?
How to copy the contents of all files with a certain name into a new file?
Match Roman Numerals
"... to apply for a visa" or "... and applied for a visa"?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
Wall plug outlet change
Do warforged have souls?
How to split my screen on my Macbook Air?
Run command on another(new) terminal window
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Open a terminal from the current terminal and run a command in the new terminalRunning multiple shell scripts from one script (nesting ?)How can I make a script that opens terminal windows and executes commands in them?How to run a script without closing the terminal?How to write a shell script that runs commands in separate terminals?alias nested stringI accidentally made my terminal open another terminal when it starts. How can I fix it?how to run command in an already opened terminal through a shell scriptFrom a bash script, send commands to a terminal windowHow do I get xdotool to register a new gnome-terminal window?Open XFCE Terminal Window and Run command in same WindowOpen a terminal from the current terminal and run a command in the new terminalCommand to open new tab in the current terminal and pass command to run on new tabRun specific command in specific instance of terminal windowRun another command when previous command completesIs it possible to open terminal from run box and use ' — ' to run a command to pen a file in some other directory?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How to run any command in another terminal window?
Example: I opened one terminal window and if I run command like apropos editor
, then it run and out-puts on that window. But I want to run same command on another terminal window (new window) instead on present window from first terminal.
Further clarification:
I need suggest-command <command>
that open new terminal window and run mentioned <command>
in that (newly opened) window. (where suggest-command
is example of suggestion of command.)
How to do that?
command-line gnome-terminal execute-command
add a comment |
How to run any command in another terminal window?
Example: I opened one terminal window and if I run command like apropos editor
, then it run and out-puts on that window. But I want to run same command on another terminal window (new window) instead on present window from first terminal.
Further clarification:
I need suggest-command <command>
that open new terminal window and run mentioned <command>
in that (newly opened) window. (where suggest-command
is example of suggestion of command.)
How to do that?
command-line gnome-terminal execute-command
1
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27
add a comment |
How to run any command in another terminal window?
Example: I opened one terminal window and if I run command like apropos editor
, then it run and out-puts on that window. But I want to run same command on another terminal window (new window) instead on present window from first terminal.
Further clarification:
I need suggest-command <command>
that open new terminal window and run mentioned <command>
in that (newly opened) window. (where suggest-command
is example of suggestion of command.)
How to do that?
command-line gnome-terminal execute-command
How to run any command in another terminal window?
Example: I opened one terminal window and if I run command like apropos editor
, then it run and out-puts on that window. But I want to run same command on another terminal window (new window) instead on present window from first terminal.
Further clarification:
I need suggest-command <command>
that open new terminal window and run mentioned <command>
in that (newly opened) window. (where suggest-command
is example of suggestion of command.)
How to do that?
command-line gnome-terminal execute-command
command-line gnome-terminal execute-command
edited Jun 18 '14 at 15:16
Pandya
asked Jun 18 '14 at 12:03
PandyaPandya
20.7k2897157
20.7k2897157
1
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27
add a comment |
1
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27
1
1
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.
nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.
nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27
add a comment |
7 Answers
7
active
oldest
votes
This might be what you search:
gnome-terminal -e "bash -c "!!; exec bash""
or (shortly):
gnome-terminal -x sh -c "!!; bash"
It opens gnome-terminal with your last command (!!
) executed and it stays open with the command output in the shell, even with an interactive command like top
or less
...
In your case its:
gnome-terminal -e "bash -c "apropos editor; exec bash""
or
gnome-terminal -x sh -c "apropos editor; bash"
2
A little bit shortergnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
add a comment |
Start another instance of whatever terminal is it you want to run:
xterm -hold -e 'apropos editor' &
Note the -hold
. Most terminals will exit after running the command you feed them. There are already a dozen or so questions about this on the site:
- How can I make a script that opens terminal windows and executes commands in them?
How to run a script without closing the terminal?
An alternative to that is to use an application which needs to be exited. nano
will stay open on its own. If you're just outputting to screen, you could pipe it into less
:
xterm -e 'apropos editor | less' &
That said, in your case (as the other two have said) it does seem easier that you just open another terminal and run your command.
Can I usegnome-terminal
instead ofxterm
then How to?
– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
add a comment |
Each terminal is even a program that you can launch as any other program,
with &
to put in background, giving a list of arguments and so on.
Which terminal to use it depends first from the availability of the system that you are using (if they are installed or not), after from their peculiarity and then from your personal taste.
konsole --hold -e "ls" &
xterm -hold -e "ls" &
gnome-terminal -e "ls" & ...
Note the differences between -hold
of xterm
and --hold
of konsole
.
Each realization has different options that you have to check with the help.
Even the help can be invoked in different way.
You can find that man konsole
doesn't function and so you have to ask directly to the executable with --help
.
This is a list of terminal you can search on your system
aterm - AfterStep terminal with transparency support
gnome-terminal - default terminal for GNOME
guake - A dropdown terminal for GNOME
konsole - default terminal for KDE
Kuake - a dropdown terminal for KDE
mrxvt - Multi-tabbed rxvt clone
rxvt - for the X Window System (and, in the form of a Cygwin port,
for Windows)
rxvt-unicode - rxvt clone with unicode support
xfce4-terminal - default terminal for Xfce desktop
environment with dropdown support
Terminator - is a GPL terminal emulator. It is available on
Microsoft Windows, Mac OS X, Linux and other Unix X11 systems.
Terminology - enhanced terminal supportive of multimedia
and text manipulation for X11 and Linux framebuffer
tilda - A drop down terminal
wterm - It is a fork of rxvt, designed to be lightweight, but still
full of features
xterm - default terminal for the X Window System
Yakuake - (Yet Another Kuake), a dropdown terminal for KDE
add a comment |
You could use the -e
option to gnome-terminal as follows:
gnome-terminal -e 'sh -c propose editor'
Here sh
is the shell that gnome-terminal opens. Note that this will exit the terminal as soon as the command has terminated. Refer to the manual page for gnome-terminal for more.
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
add a comment |
- Open two terminals;
- Identifying each terminal with
tty
command; - Supposing they identified with /dev/pts/0 and /dev/pts/1;
- In terminal pts/0 redirecting stdout to pts/1 with
exec
command:exec 1>/dev/pts/1
- Now every command stdout output from pts/0 terminal is displaying in pts/1;
- Redirecting back stdout with commad:
exec 1>/dev/pts/0
- Now pts/0 stdout working as before.
YouTube video:
add a comment |
After Ubuntu 18.04 LTS, you may want to switch from -e
to --
, i.e. gnome-terminal -e
to gnome-terminal --
because -e
and -x
are both deprecated.
add a comment |
Here goes my 50 cents with Terminator:
terminator -x "script.sh; bash"
This also works, but I can't tell you the difference:
terminator -e "script.sh; bash"
Note that script could also be a command.
Tested on Ubuntu 18.04 LTS.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f484993%2frun-command-on-anothernew-terminal-window%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
This might be what you search:
gnome-terminal -e "bash -c "!!; exec bash""
or (shortly):
gnome-terminal -x sh -c "!!; bash"
It opens gnome-terminal with your last command (!!
) executed and it stays open with the command output in the shell, even with an interactive command like top
or less
...
In your case its:
gnome-terminal -e "bash -c "apropos editor; exec bash""
or
gnome-terminal -x sh -c "apropos editor; bash"
2
A little bit shortergnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
add a comment |
This might be what you search:
gnome-terminal -e "bash -c "!!; exec bash""
or (shortly):
gnome-terminal -x sh -c "!!; bash"
It opens gnome-terminal with your last command (!!
) executed and it stays open with the command output in the shell, even with an interactive command like top
or less
...
In your case its:
gnome-terminal -e "bash -c "apropos editor; exec bash""
or
gnome-terminal -x sh -c "apropos editor; bash"
2
A little bit shortergnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
add a comment |
This might be what you search:
gnome-terminal -e "bash -c "!!; exec bash""
or (shortly):
gnome-terminal -x sh -c "!!; bash"
It opens gnome-terminal with your last command (!!
) executed and it stays open with the command output in the shell, even with an interactive command like top
or less
...
In your case its:
gnome-terminal -e "bash -c "apropos editor; exec bash""
or
gnome-terminal -x sh -c "apropos editor; bash"
This might be what you search:
gnome-terminal -e "bash -c "!!; exec bash""
or (shortly):
gnome-terminal -x sh -c "!!; bash"
It opens gnome-terminal with your last command (!!
) executed and it stays open with the command output in the shell, even with an interactive command like top
or less
...
In your case its:
gnome-terminal -e "bash -c "apropos editor; exec bash""
or
gnome-terminal -x sh -c "apropos editor; bash"
edited Jun 19 '14 at 7:26
Pandya
20.7k2897157
20.7k2897157
answered Jun 18 '14 at 12:34
chaoschaos
19.9k85968
19.9k85968
2
A little bit shortergnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
add a comment |
2
A little bit shortergnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
2
2
A little bit shorter
gnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
A little bit shorter
gnome-terminal -x sh -c "!!; bash"
– TuKsn
Jun 18 '14 at 13:22
add a comment |
Start another instance of whatever terminal is it you want to run:
xterm -hold -e 'apropos editor' &
Note the -hold
. Most terminals will exit after running the command you feed them. There are already a dozen or so questions about this on the site:
- How can I make a script that opens terminal windows and executes commands in them?
How to run a script without closing the terminal?
An alternative to that is to use an application which needs to be exited. nano
will stay open on its own. If you're just outputting to screen, you could pipe it into less
:
xterm -e 'apropos editor | less' &
That said, in your case (as the other two have said) it does seem easier that you just open another terminal and run your command.
Can I usegnome-terminal
instead ofxterm
then How to?
– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
add a comment |
Start another instance of whatever terminal is it you want to run:
xterm -hold -e 'apropos editor' &
Note the -hold
. Most terminals will exit after running the command you feed them. There are already a dozen or so questions about this on the site:
- How can I make a script that opens terminal windows and executes commands in them?
How to run a script without closing the terminal?
An alternative to that is to use an application which needs to be exited. nano
will stay open on its own. If you're just outputting to screen, you could pipe it into less
:
xterm -e 'apropos editor | less' &
That said, in your case (as the other two have said) it does seem easier that you just open another terminal and run your command.
Can I usegnome-terminal
instead ofxterm
then How to?
– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
add a comment |
Start another instance of whatever terminal is it you want to run:
xterm -hold -e 'apropos editor' &
Note the -hold
. Most terminals will exit after running the command you feed them. There are already a dozen or so questions about this on the site:
- How can I make a script that opens terminal windows and executes commands in them?
How to run a script without closing the terminal?
An alternative to that is to use an application which needs to be exited. nano
will stay open on its own. If you're just outputting to screen, you could pipe it into less
:
xterm -e 'apropos editor | less' &
That said, in your case (as the other two have said) it does seem easier that you just open another terminal and run your command.
Start another instance of whatever terminal is it you want to run:
xterm -hold -e 'apropos editor' &
Note the -hold
. Most terminals will exit after running the command you feed them. There are already a dozen or so questions about this on the site:
- How can I make a script that opens terminal windows and executes commands in them?
How to run a script without closing the terminal?
An alternative to that is to use an application which needs to be exited. nano
will stay open on its own. If you're just outputting to screen, you could pipe it into less
:
xterm -e 'apropos editor | less' &
That said, in your case (as the other two have said) it does seem easier that you just open another terminal and run your command.
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Jun 18 '14 at 12:14
Oli♦Oli
224k90567768
224k90567768
Can I usegnome-terminal
instead ofxterm
then How to?
– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
add a comment |
Can I usegnome-terminal
instead ofxterm
then How to?
– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
Can I use
gnome-terminal
instead of xterm
then How to?– Pandya
Jun 18 '14 at 12:23
Can I use
gnome-terminal
instead of xterm
then How to?– Pandya
Jun 18 '14 at 12:23
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
I'm curious about how to do this with xfce4-terminal (xfce4-terminal opens a new process, while xterm doesn't—in my case, I actually don't want a new process).
– Shule
Jan 20 '16 at 7:49
add a comment |
Each terminal is even a program that you can launch as any other program,
with &
to put in background, giving a list of arguments and so on.
Which terminal to use it depends first from the availability of the system that you are using (if they are installed or not), after from their peculiarity and then from your personal taste.
konsole --hold -e "ls" &
xterm -hold -e "ls" &
gnome-terminal -e "ls" & ...
Note the differences between -hold
of xterm
and --hold
of konsole
.
Each realization has different options that you have to check with the help.
Even the help can be invoked in different way.
You can find that man konsole
doesn't function and so you have to ask directly to the executable with --help
.
This is a list of terminal you can search on your system
aterm - AfterStep terminal with transparency support
gnome-terminal - default terminal for GNOME
guake - A dropdown terminal for GNOME
konsole - default terminal for KDE
Kuake - a dropdown terminal for KDE
mrxvt - Multi-tabbed rxvt clone
rxvt - for the X Window System (and, in the form of a Cygwin port,
for Windows)
rxvt-unicode - rxvt clone with unicode support
xfce4-terminal - default terminal for Xfce desktop
environment with dropdown support
Terminator - is a GPL terminal emulator. It is available on
Microsoft Windows, Mac OS X, Linux and other Unix X11 systems.
Terminology - enhanced terminal supportive of multimedia
and text manipulation for X11 and Linux framebuffer
tilda - A drop down terminal
wterm - It is a fork of rxvt, designed to be lightweight, but still
full of features
xterm - default terminal for the X Window System
Yakuake - (Yet Another Kuake), a dropdown terminal for KDE
add a comment |
Each terminal is even a program that you can launch as any other program,
with &
to put in background, giving a list of arguments and so on.
Which terminal to use it depends first from the availability of the system that you are using (if they are installed or not), after from their peculiarity and then from your personal taste.
konsole --hold -e "ls" &
xterm -hold -e "ls" &
gnome-terminal -e "ls" & ...
Note the differences between -hold
of xterm
and --hold
of konsole
.
Each realization has different options that you have to check with the help.
Even the help can be invoked in different way.
You can find that man konsole
doesn't function and so you have to ask directly to the executable with --help
.
This is a list of terminal you can search on your system
aterm - AfterStep terminal with transparency support
gnome-terminal - default terminal for GNOME
guake - A dropdown terminal for GNOME
konsole - default terminal for KDE
Kuake - a dropdown terminal for KDE
mrxvt - Multi-tabbed rxvt clone
rxvt - for the X Window System (and, in the form of a Cygwin port,
for Windows)
rxvt-unicode - rxvt clone with unicode support
xfce4-terminal - default terminal for Xfce desktop
environment with dropdown support
Terminator - is a GPL terminal emulator. It is available on
Microsoft Windows, Mac OS X, Linux and other Unix X11 systems.
Terminology - enhanced terminal supportive of multimedia
and text manipulation for X11 and Linux framebuffer
tilda - A drop down terminal
wterm - It is a fork of rxvt, designed to be lightweight, but still
full of features
xterm - default terminal for the X Window System
Yakuake - (Yet Another Kuake), a dropdown terminal for KDE
add a comment |
Each terminal is even a program that you can launch as any other program,
with &
to put in background, giving a list of arguments and so on.
Which terminal to use it depends first from the availability of the system that you are using (if they are installed or not), after from their peculiarity and then from your personal taste.
konsole --hold -e "ls" &
xterm -hold -e "ls" &
gnome-terminal -e "ls" & ...
Note the differences between -hold
of xterm
and --hold
of konsole
.
Each realization has different options that you have to check with the help.
Even the help can be invoked in different way.
You can find that man konsole
doesn't function and so you have to ask directly to the executable with --help
.
This is a list of terminal you can search on your system
aterm - AfterStep terminal with transparency support
gnome-terminal - default terminal for GNOME
guake - A dropdown terminal for GNOME
konsole - default terminal for KDE
Kuake - a dropdown terminal for KDE
mrxvt - Multi-tabbed rxvt clone
rxvt - for the X Window System (and, in the form of a Cygwin port,
for Windows)
rxvt-unicode - rxvt clone with unicode support
xfce4-terminal - default terminal for Xfce desktop
environment with dropdown support
Terminator - is a GPL terminal emulator. It is available on
Microsoft Windows, Mac OS X, Linux and other Unix X11 systems.
Terminology - enhanced terminal supportive of multimedia
and text manipulation for X11 and Linux framebuffer
tilda - A drop down terminal
wterm - It is a fork of rxvt, designed to be lightweight, but still
full of features
xterm - default terminal for the X Window System
Yakuake - (Yet Another Kuake), a dropdown terminal for KDE
Each terminal is even a program that you can launch as any other program,
with &
to put in background, giving a list of arguments and so on.
Which terminal to use it depends first from the availability of the system that you are using (if they are installed or not), after from their peculiarity and then from your personal taste.
konsole --hold -e "ls" &
xterm -hold -e "ls" &
gnome-terminal -e "ls" & ...
Note the differences between -hold
of xterm
and --hold
of konsole
.
Each realization has different options that you have to check with the help.
Even the help can be invoked in different way.
You can find that man konsole
doesn't function and so you have to ask directly to the executable with --help
.
This is a list of terminal you can search on your system
aterm - AfterStep terminal with transparency support
gnome-terminal - default terminal for GNOME
guake - A dropdown terminal for GNOME
konsole - default terminal for KDE
Kuake - a dropdown terminal for KDE
mrxvt - Multi-tabbed rxvt clone
rxvt - for the X Window System (and, in the form of a Cygwin port,
for Windows)
rxvt-unicode - rxvt clone with unicode support
xfce4-terminal - default terminal for Xfce desktop
environment with dropdown support
Terminator - is a GPL terminal emulator. It is available on
Microsoft Windows, Mac OS X, Linux and other Unix X11 systems.
Terminology - enhanced terminal supportive of multimedia
and text manipulation for X11 and Linux framebuffer
tilda - A drop down terminal
wterm - It is a fork of rxvt, designed to be lightweight, but still
full of features
xterm - default terminal for the X Window System
Yakuake - (Yet Another Kuake), a dropdown terminal for KDE
edited Jun 18 '14 at 12:54
answered Jun 18 '14 at 12:35
HasturHastur
2,86511832
2,86511832
add a comment |
add a comment |
You could use the -e
option to gnome-terminal as follows:
gnome-terminal -e 'sh -c propose editor'
Here sh
is the shell that gnome-terminal opens. Note that this will exit the terminal as soon as the command has terminated. Refer to the manual page for gnome-terminal for more.
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
add a comment |
You could use the -e
option to gnome-terminal as follows:
gnome-terminal -e 'sh -c propose editor'
Here sh
is the shell that gnome-terminal opens. Note that this will exit the terminal as soon as the command has terminated. Refer to the manual page for gnome-terminal for more.
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
add a comment |
You could use the -e
option to gnome-terminal as follows:
gnome-terminal -e 'sh -c propose editor'
Here sh
is the shell that gnome-terminal opens. Note that this will exit the terminal as soon as the command has terminated. Refer to the manual page for gnome-terminal for more.
You could use the -e
option to gnome-terminal as follows:
gnome-terminal -e 'sh -c propose editor'
Here sh
is the shell that gnome-terminal opens. Note that this will exit the terminal as soon as the command has terminated. Refer to the manual page for gnome-terminal for more.
answered Jun 18 '14 at 12:13
jobinjobin
19.7k1280110
19.7k1280110
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
add a comment |
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
How to hold new opened terminal, which is exiting after command finished/terminated?
– Pandya
Jun 18 '14 at 12:27
add a comment |
- Open two terminals;
- Identifying each terminal with
tty
command; - Supposing they identified with /dev/pts/0 and /dev/pts/1;
- In terminal pts/0 redirecting stdout to pts/1 with
exec
command:exec 1>/dev/pts/1
- Now every command stdout output from pts/0 terminal is displaying in pts/1;
- Redirecting back stdout with commad:
exec 1>/dev/pts/0
- Now pts/0 stdout working as before.
YouTube video:
add a comment |
- Open two terminals;
- Identifying each terminal with
tty
command; - Supposing they identified with /dev/pts/0 and /dev/pts/1;
- In terminal pts/0 redirecting stdout to pts/1 with
exec
command:exec 1>/dev/pts/1
- Now every command stdout output from pts/0 terminal is displaying in pts/1;
- Redirecting back stdout with commad:
exec 1>/dev/pts/0
- Now pts/0 stdout working as before.
YouTube video:
add a comment |
- Open two terminals;
- Identifying each terminal with
tty
command; - Supposing they identified with /dev/pts/0 and /dev/pts/1;
- In terminal pts/0 redirecting stdout to pts/1 with
exec
command:exec 1>/dev/pts/1
- Now every command stdout output from pts/0 terminal is displaying in pts/1;
- Redirecting back stdout with commad:
exec 1>/dev/pts/0
- Now pts/0 stdout working as before.
YouTube video:
- Open two terminals;
- Identifying each terminal with
tty
command; - Supposing they identified with /dev/pts/0 and /dev/pts/1;
- In terminal pts/0 redirecting stdout to pts/1 with
exec
command:exec 1>/dev/pts/1
- Now every command stdout output from pts/0 terminal is displaying in pts/1;
- Redirecting back stdout with commad:
exec 1>/dev/pts/0
- Now pts/0 stdout working as before.
YouTube video:
edited Sep 29 '17 at 19:08
muru
1
1
answered Sep 29 '17 at 13:56
Vitalie GhelbertVitalie Ghelbert
23326
23326
add a comment |
add a comment |
After Ubuntu 18.04 LTS, you may want to switch from -e
to --
, i.e. gnome-terminal -e
to gnome-terminal --
because -e
and -x
are both deprecated.
add a comment |
After Ubuntu 18.04 LTS, you may want to switch from -e
to --
, i.e. gnome-terminal -e
to gnome-terminal --
because -e
and -x
are both deprecated.
add a comment |
After Ubuntu 18.04 LTS, you may want to switch from -e
to --
, i.e. gnome-terminal -e
to gnome-terminal --
because -e
and -x
are both deprecated.
After Ubuntu 18.04 LTS, you may want to switch from -e
to --
, i.e. gnome-terminal -e
to gnome-terminal --
because -e
and -x
are both deprecated.
edited Nov 22 '18 at 4:51
muru
1
1
answered Nov 22 '18 at 4:30
kensaiikensaii
208
208
add a comment |
add a comment |
Here goes my 50 cents with Terminator:
terminator -x "script.sh; bash"
This also works, but I can't tell you the difference:
terminator -e "script.sh; bash"
Note that script could also be a command.
Tested on Ubuntu 18.04 LTS.
add a comment |
Here goes my 50 cents with Terminator:
terminator -x "script.sh; bash"
This also works, but I can't tell you the difference:
terminator -e "script.sh; bash"
Note that script could also be a command.
Tested on Ubuntu 18.04 LTS.
add a comment |
Here goes my 50 cents with Terminator:
terminator -x "script.sh; bash"
This also works, but I can't tell you the difference:
terminator -e "script.sh; bash"
Note that script could also be a command.
Tested on Ubuntu 18.04 LTS.
Here goes my 50 cents with Terminator:
terminator -x "script.sh; bash"
This also works, but I can't tell you the difference:
terminator -e "script.sh; bash"
Note that script could also be a command.
Tested on Ubuntu 18.04 LTS.
answered Apr 10 at 21:30
Reginaldo SantosReginaldo Santos
1618
1618
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f484993%2frun-command-on-anothernew-terminal-window%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Right-Click on the terminal icon and click on "Open New Terminal".
– Raphael
Jun 18 '14 at 12:08
Sorry if I sound like a lamen, but that's what I understood from your question.
– Raphael
Jun 18 '14 at 12:09
gnome-terminal right?
– Braiam
Jun 18 '14 at 14:19
While opening a new terminal may solve your problem, you might also wish to simply use nohup, re-direct the output, and put your editor in the background.
nohup apropos editor &> /dev/null &
– Panther
Jun 18 '14 at 15:27
I also do not understand: why not to open a new terminal?
– Josef Klimuk
Jan 9 '18 at 11:27