【Mac】不可視ファイルを表示する方法

【Mac】不可視ファイルを表示する方法
【Mac】不可視ファイルを表示する方法

サーバから、.htaccess などのファイルをそのまま Mac のデスクトップにダウンロードしようとした時なんかに「上書きしますか?」と聞かれたりします。はて?デスクトップには何も置いてないハズなのに…。

.htaccess などの.(ドット)から始まるファイル名は、基本的に不可視ファイルになります。
これらを表示する方法をメモまでに。

【1】ターミナルを開く

【2】以下のコマンドを入力(というかコピペ)。 defaults write com.apple.finder AppleShowAllFiles true

【3】Finder の再起動をします。コマンドは以下 killall Finder

もう丸見えです。
戻すときは、

【1】ターミナルを開く

【2】以下のコマンドを入力(というかコピペ)。 defaults write com.apple.finder AppleShowAllFiles false

【3】Finder の再起動をします。コマンドは以下 killall Finder

こちらの関連記事もあわせてどうぞ!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">