LoginSignup
1
0

More than 5 years have passed since last update.

Macで「.htaccess」のようにドットから始まるファイルを表示・非表示する方法(メモ用)

Last updated at Posted at 2018-11-08

PHPの学習に伴い、開発環境を構築するにあたり、知る機会があったので、メモしておきたいので以下に記録する。
ターミナルにて、それぞれに状況に応じて、以下のコマンドを実行。

表示にする場合

まず、最初に以下のコマンドを実行

$ defaults write com.apple.finder AppleShowAllFiles true

次に下記のコマンドを実行すると、Finderで確認してみる。

$ killall Finder

非表示にする場合

最後尾にfalseと書いてあるので、非表示目的のコマンドであるのは分かりやすい。
同じく、最初にこれを実行する。

$ defaults write com.apple.finder AppleShowAllFiles false

次に同じく下記のコマンド実行すると、非表示になる。Finderで確認できる。

$ killall Finder
1
0
0

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
1
0