3

I'm asking about sorting my files ordered by "type" for all directories ?

I could sort it for one directory but I couldn't find any solutions for my req (if possible) .

  • You mean within the file explorer - Nautilus? – pa4080 Nov 5 '17 at 9:39
  • @pa4080 yes, not in terminal list files – Ali H Nov 5 '17 at 9:40
3

You could change Nautilus preferences: Nautilus menu > Preferences > View (tab) and set Arrange items: By Type.

enter image description here


Or you can use dconf-editor. First install it:

sudo apt install dconf-editor

Then launch the application dconf-editor and go to org > gnome > nautilus > preferences and change the Default sort order.

enter image description here


Another way is to use gsettings to set this value:

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

References:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.