How to reveal dot files in finder?
Here’s one from my archives. To reveal dot files in macOS Finder, open your Terminal (/Applications/Utilities) application and then enter,
defaults write com.apple.finder AppleShowAllFiles YES
Then restart Finder by holding down Option and Control, or right-clicking on the Finder’s icon in your Dock and choosing “Relaunch”.
To revert this behavior, simply change the YES to NO in that defaults command.
Set Mac Hostname
To set the host name of your Mac (in my case macbook-pro) in the command prompt, type the following command:
$ sudo scutil --set HostName "macbook-pro"$ sudo scutil --set LocalHostName "macbook-pro"
Reset Mac Launchpad
To reset the Mac LaunchPad to default enter the following:
rm ~/Library/Application\ Support/Dock/*.db ; killall Dock
This will however put all of the Apple apps on the first page and all of your remaining apps will be sorted alphabetically on the remaining pages.