macOS
This page collects common macOS terminal commands: set a terminal proxy, show hidden files, and reset Launchpad, the Dock and Notification Center.
Configuration#
These settings are applied from the command line and take effect immediately.
Configure a proxy#
Set the proxy environment variables in the current shell. The HTTP port is 6152 and the SOCKS5 port is 6153, the default ports of Surge:
Show hidden files#
Make Finder show hidden files, then restart Finder:
Usage#
These commands restore a system component to its defaults and restart the related process.
Reset Launchpad#
Delete the Launchpad database, then restart the Dock:
Reset the Dock#
Delete the Dock preferences, then restart the Dock:
Reset Notification Center#
Delete the Notification Center preferences, then restart Notification Center: