Viewing hidden files on a Mac

Macではドット"."で始まるファイルやフォルダは隠しフォルダ、ファイルになるようです。
Finderで表示する方法を紹介します。
はるか昔のメモです。。

  1. ターミナルを開く(アプリケーション/ユーティリティ)
  2. 下記コマンドを叩いてreturnキーを押して実行
  3. ```plain defaults write com.apple.finder AppleShowAllFiles -bool true killall Finder ```
  4. ログアウト、あるいはkillall Finderで効果が見れます

隠しファイルを非表示にするには

上記と全く同じ手順で、コマンドを書き換えます。

defaults write com.apple.finder AppleShowAllFiles -bool false

English

Viewing hidden files on a Mac is useful for accessing the hidden UNIX directories or for recovering Music from an iPod. Additionally, by prefixing the name of a folder with a '.', you can create a folder that is seemingly hidden from prying eyes.

To view hidden folders:

  1. Open the Terminal (located in /Applications/Utilities/)
  2. At the command prompt type
defaults write com.apple.finder AppleShowAllFiles -bool true

  1. Press return to execute the command.
  2. For the changes to take effect, either log out then log back in again, or relaunch Finder (this can be done from the Force Quit Window or by typing 'killall Finder' in a Terminal window).

To hide the hidden files again:

  1. Open the Terminal
  2. At the command prompt type
defaults write com.apple.finder AppleShowAllFiles -bool false

  1. then press return to execute the command.
  2. Log out then back in again, or relaunch Finder (explained above).
July 07, 2010 mac


Qihuan Piao

Qihuan Piao

(aka kinopyo) is Chinese based in Tokyo. Software writer. He shares stories inspired him this blog. His infamous line - "I feel calm when I kill those monsters, or people (in game)" shocks his friends deeply.
He also writes in Japanese and Chinese.