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.

How to change the sort by for folders to type, because I want folders to be shown first and then files by name. When I sort by type, I get the result I want, but I need to change this for all my folders.

How can I change the default preference to sort by: type, so every folder will by default be sorted by type?

Thanks.

EDIT: I tried with dconf-editor, then org > gnome > nautilus > preferences and tried to choose type in default-sort-order, but I can only select modification_date, not by type.

I am using Ubuntu 12.10 and Nautilus 3.6.

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

On Nemo (a recent fork of nautilus), I have the following in the menu :

  1. Edit > Preferences
  2. then on the Views tab
    • I got a section called Default View
    • with a line Arrange items, there is a select where I can choose the default sort order

Screenshot

http://imgur.com/OO2lMIz

share|improve this answer
    
It says installing Nemo will install Cinnamon too (webupd8.org/2012/12/how-to-install-nemo-file-manager-in.html). I wouldn't like to change anything now, if there is a solution without changes :) –  bosniamaj Feb 8 '13 at 15:29
    
I never meant you to install Nemo, just show you the option exist in recent version. Which ubuntu and nautilus version do you use ? Add it to the question/description –  Edouard Lopez Feb 8 '13 at 15:31
1  
got similar settings on a nautilus 3.4.2. Did you close your nautilus and open it back ? –  Edouard Lopez Feb 8 '13 at 15:39
    
Yes, I am a noob to the Ubuntu, sorry. I found the preference > default view. I didn't see it in the top bar, instead I was trying dconf-editor :( –  bosniamaj Feb 8 '13 at 16:20
add comment

I see the same problems on Fedora 18 (using the same versions).

The first attempt using dconf directly via the command line does not work for me:

$ dconf write /org/gnome/nautilus/preferences/default-sort-order type
error: 0-4:unknown keyword

Now gsettings to the rescue:

gsettings set org.gnome.nautilus.preferences default-sort-order type

I'm not sure why dconf does not accept 'type' as a valid value even though dconf-editor explicitely lists it in the help text but gsettings works for me just fine.

share|improve this answer
1  
Set by "modification time" using gsettings set org.gnome.nautilus.preferences default-sort-order mtime –  Dave May 21 '13 at 23:09
add comment

In preferences -> Views -> Arrange Items

It has got 'By Type' in the drop down list.

If you can't see preferences in gnome-shell, click on the nautilus icon in the top panel

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

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.