A little google reveals there are two commands I can use to change nautilus settings.
1. dconf-editor (GUI application which can provide options to set for a particular key)
2. gsettings (CLI application, don't have the ability to provide options)
1. changing nautilus default view through dconf-editor:
i) go to command prompt and execute 'dconf-editor', a GUI application will open.
ii) click org->gnome->nautilus->preferences, you will see 'default-folder-viewer' under 'Name' column.
iii) double-click 'icon-view' under 'Value' column, a drop-down list will appear, change it to 'list-view'.
2. changing nautilus default view through gsettings:
i) go to command prompt and type below commandline,
- Code: Select all
$ gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
I hope this will help people who is struggling with nautilus like me.