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) .
21 Answer
You could change Nautilus preferences: Nautilus menu > Preferences > View (tab) and set Arrange items: By Type.
Or you can use dconf-editor. First install it:
sudo apt install dconf-editorThen launch the application dconf-editor and go to org > gnome > nautilus > preferences and change the Default sort order.
Another way is to use gsettings to set this value:
gsettings set org.gnome.nautilus.preferences default-sort-order 'type'References: