Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Does a shell command exist to bring a already started program in gnome in the front of another.


Gedit and Nautilus are started. Nautilus is in the background and Gedit in the foreground.

How to i bring Nautilus in the front with a shell command?

share|improve this question
Other: superuser.com/questions/183680/… –  karthick87 Jan 12 '11 at 19:40

2 Answers 2

up vote 8 down vote accepted


  • More information about xdotool can be found here.
share|improve this answer
Sure edit your post just as I'm composing mine... :( ) –  frabjous Jan 12 '11 at 20:58

Another option is xdotool:

xdotool search --class Nautilus windowactivate

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.