How can you run an application directly inside a Konsole (KDE) or Terminal (GNOME)?

I'm particularly interested in having a shortcut to Emacs:

emacs -nw

Being in KDE, that would open a Konsole and run Emacs (no-windows), and GNOME would run it inside a Terminal. I guess Konsole should have a parameter in which you can ask it to run, and open a certain program/script. Does anybody know how to do this?

Thanks!

link|improve this question
2  
Man pages are the best way to get this information, run "man konsole" and "man gnome-terminal". – alfplayer Jan 12 '10 at 19:11
feedback

1 Answer

up vote 2 down vote accepted

man gnome-terminal tells me:

   -e, --command=STRING
             Execute the argument to this option inside the terminal.

   -x, --execute
             Execute the remainder of the command line inside  the  termi‐
             nal.
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.