If you encounter unexpected behavior after modifying hidden files, restart your Mac or relaunch Finder using killall Finder in the Terminal.
For a permanent setting, open Terminal and enter: defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder . show hidden finder link
At the bottom of the file, add the following lines: If you encounter unexpected behavior after modifying hidden