I'm using Ubuntu 19.04. Every time I open a folder, files are sorted depending on their names. I switch manually to modification date sorting. But everytime I open a new folder I have to do that again, as Nautilus seems not to remember last settings.
Asked
Active
Viewed 1,058 times
4
-
1It seems that Nautilus remembers the sorting order of each folder. However, when you enter a new folder it defaults to *Name* ordering. After you change the sort order for this folder, it sticks to this order until you change it again. Is this something you do not want? – FedKad Jul 21 '19 at 15:15
-
The problem was that it didn't remember the ordering after I closed the folder. The accepted solution works. – jack Jul 22 '19 at 20:52
1 Answers
4
This should work in all supported Ubuntu releases. First get default sort order:
$ gsettings get org.gnome.nautilus.preferences default-sort-order
'name'
Now change it to new sort order by modification date:
$ gsettings set org.gnome.nautilus.preferences default-sort-order 'mtime'
The list of all sort values allowed:
- by Name =
'name'
- by Size =
'size'
- by Type =
'type'
- by Modification Date =
'mtime'
- by Access Date =
'atime'
- by Trashed Date =
'trash-time'

WinEunuuchs2Unix
- 102,282
-
1This worked perfectly, thanks. I added also the command gsettings set org.gnome.nautilus.preferences default-sort-in-reverse-order true in order to diplay it in reverse order (newer files on top) – jack Jul 22 '19 at 20:50
-
1command worked but did not have an effect for me in 20.04 to sort by type, even after re-opening Nautilus – kdarras Aug 14 '20 at 10:24
-
I confirm the confirm of @kdarras. Does not change the sort order on 20.04! – Rudy Vissers Nov 24 '21 at 05:33