LoginSignup
45

More than 5 years have passed since last update.

Macで隠しファイルを表示する方法

Last updated at Posted at 2016-01-03

Macで隠しファイルを表示する方法

.bash_historyとかのドットファイルをFinderでも表示させる。
defaultsコマンドを使うとできるらしい。
(defaultsはplist(プロパティリスト)と呼ばれる設定ファイルの設定値を変更するコマンド)

$ defaults write com.apple.finder AppleShowAllFiles TRUE
## 確認
$ defaults read com.apple.finder AppleShowAllFiles
TRUE

次のコマンドでFinderを再起動して設定を反映。

$ killall Finder

sierraからは.DS_Store.localizedはこの方法でも表示されなくなったようです。

環境

  • OS X El Capitan version 10.11.2
  • macOS Sierra version 10.12.1

参考サイト

編集履歴

  • 2016/12/04
    • macOS sierraでも確認
  • 2016/05/07訂正
    • AppShowAllFiles->AppleShowAllFilesと誤記を修正しました。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
45