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?
Best Answer
This might be what you search:
or (shortly):
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 liketop
orless
...In your case its:
or