Ubuntu: How to open the terminal with specific command already run? Best at Unity Launcher! [duplicate]



Question:

This question already has an answer here:

I know how to add a command to the Unity Launcher, but don't know how to have automatically opened terminal for the command.

Especially needed when sudo command needs password or command result should be seen.


Solution:1

You have two options to open a terminal or uxterm with already running a command:

uxterm -e <command>  

Or

gnome-terminal -x <command>  

For multiple commands to be already run:

gnome-terminal -x bash -c "<command1>; <command2>; <command3>"  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »