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

Is it possible to set size of the window when running the program from terminal?

For example I want to open current directory in nautilus :

sylap@sylap:~/Desktop/omg/wtf/foo/bar nautilus .

But I want it to be opened with fixed size, ie, I want to do something like this :

sylap@sylap:~/Desktop/omg/wtf/foo/bar WINWIDTH=400 WINHEIGHT=500 nautilus .
share|improve this question
up vote 3 down vote accepted

The basic command option is to add (width x height) is “–geometry=WxH” option .

Here is the command you can try it and specify your own options :

First :

killall -9 nautilus

Then :

nautilus computer: --geometry=860x480
share|improve this answer
It does not work as expected if you already have a nautilus running (and it's always the case as gnome-session always starts a non-visible nautilus process by default). So a killall -9 nautilus is needed to use your command – Sylvain Pineau Apr 23 '14 at 11:39
you are right @Sylvain i will edit my answer , thank a lot – nux Apr 23 '14 at 11:49

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.