Ubuntu – Shell command to bring a program window in front of another

command linegnomewindow-manager

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

i.e.:

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?

Best Answer

Note:

  • More information about xdotool can be found here.