Set Finder's Default View Style via defaults

Use FXPreferredViewStyle to make new Finder windows open in list, column or gallery view instead of icons.

macOSmacosFilesFinderdefaultsMedium risk
Run `defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" && killall Finder` (Nlsv=list, icgv=icons, clmv=columns, glyv=gallery).

01Command

Command
$ defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" && killall Finder

02What it does

FXPreferredViewStyle is the preference Finder consults for windows whose folder has no stored per-folder view. The four accepted values are Nlsv (list), icgv (icon), clmv (column) and glyv (gallery); Nlsv is the classic power-user choice because it sorts files cleanly and shows sizes and dates. killall Finder applies the change immediately without a logout.

03Risk

RiskMedium risk
!Warning: Folders where you already changed the view manually keep their own per-folder setting — this only changes the default.

04Undo

Undo
$ defaults delete com.apple.finder FXPreferredViewStyle && killall Finder

05Sources

  • macOS defaults - read, write and delete macOS user defaults
    SS64 · technical · 2026-09-17
    Evidence: Documents `defaults write domain key -string value` for string preference keys and restarting Finder (killall Finder) to apply preference changes.
  • macOS setup dotfiles (.macos)
    mathiasbynens/dotfiles (GitHub) · community · 2026-09-17
    Evidence: Contains 'defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"' with a comment setting Finder to list view by default.

Last verified: 2026-09-19 · Category: Files & Folders

06Related solutions