Hide Files and Folders in Finder

I like to have clean directories when I open up Finder. Some files and folders like node_modules can’t be hidden with a dot in the name without creating conflicts with the programs using them. But there is another way to hide them.

SetFile hide command

Hide files and folders with:

To unhide them put a small v instead of V

You need Command Line Tools installed to do this. xcode-select --install

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store