Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I open a dialog box as below from a terminal?

enter image description here

share|improve this question
up vote 3 down vote accepted

Install the X11 keyboard/mouse input simulator xdotool and run xdotool key Alt+F2.

You can add this alias to your ~/.bashrc file to make typing easier:

alias rd="xdotool key Alt+F2"

Now all you need to do is type rd.

Hacky, but works.

share|improve this answer

Two options:

  1. Install gmrun from software center with sudo apt-get install gmrun then use command gmrun from the terminal
  2. Compile gnome-run from source and use gnome-run from the terminal. Instructions here:

Unfortunately this is harder than it should be.

share|improve this answer

I found another way to do it:

  1. Install xautomation Install xautomation package
  2. Run this command: xte 'keydown Alt_L' 'key F2' 'keyup Alt_L'

Thanks htorque for the hint "keyboard/mouse input"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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