Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5335  / 2 Years ago, tue, november 1, 2022, 12:12:35

I want to sort subdirectories inside a main directory according to the size,and also I want to sort files inside the subdirectories according to the file created date through terminal. Is that possible?



Edit: After I sorted the files inside the folder by following the below answers, it doesn't rearranges while I am viewing through nautilus. I want the files to be rearranged while viewing it through nautilus.


More From » nautilus

 Answers
2

If you want to sort sub-directories/files inside a directory according to the size, type in terminal,



gsettings set org.gnome.nautilus.preferences default-sort-order "size"


To sort sub-directories/files according to file modification time,



gsettings set org.gnome.nautilus.preferences default-sort-order "mtime"


You can also sort according to name and type. But you can not set two values simultaneously, like one for a directory and other for sub-directories. There is no problem to change the values any time. The change will take place immediately for all directories.



Also you can sort in reverse order for size, name, modification time or type. To do this type in terminal,



gsettings set org.gnome.nautilus.preferences default-sort-in-reverse-order true

[#28143] Wednesday, November 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
exceeeelh

Total Points: 21
Total Questions: 109
Total Answers: 120

Location: Marshall Islands
Member since Wed, Jan 5, 2022
2 Years ago
exceeeelh questions
Sun, Nov 20, 22, 17:08, 1 Year ago
Sat, Jan 1, 22, 08:04, 2 Years ago
Wed, May 12, 21, 05:11, 3 Years ago
;