Fix Nautilus ‘Show Folders Before Files’ in Ubuntu 18.04 LTS

18.04nautilus

I'm having a problem with Nautilus, showing an alphabetical list of files and folders. Obviously, an option to list folders first then files, is gone. I noticed listing order change after some upgrade (hard to say now, which one was that):

enter image description here

I was trying the solution proposed here: Nautilus: Make “Show folders before files” option persist?, with no luck. I do not notice the permission problems when starting Nautilus from the bash.
Is there any magic configuration setting to change the listing for Folders First?

Best Answer

You can change this from the Nautilus preferences. Open the context Menu from the top-right of a Nautilus Window:

Nautilus Context Menu

Tick 'Sort folders before files'. Nautilus Preferences

If that doesn't work you can edit the Dconf file directly, the easiest way is using the Dconf Editor: Install Dconf Editor (sudo apt install dconf-editor), open it and then navigate to:

orggtksettingsfile-choosersort-directories-first and set it to True.

dconf editor

Alternatively, run this command in the terminal:

dconf write /org/gtk/settings/file-chooser/sort-directories-first true
Related Question