显示Mac隐藏文件的命令：defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏Mac隐藏文件的命令：defaults write com.apple.finder AppleShowAllFiles -bool false
MacPorts version 2.1.2 is available in various formats for download and installation (note, if you are upgrading your Mac OS X to a new major release, see the migration info page)“pkg” installers for Mountain Lion, Lion and Snow Leopard, for use with the Mac OS X Installer. This is the simplest installation procedure that most users should follow after meeting the requirements listed below. Installer for legacy platform Leopard also available.In source form as either a tar.bz2 package or a tar.gz one for manual compilation, if you intend to customize your installation in any way.SVN checkout of the unpackaged sources, if you wish to follow MacPorts development.The selfupdate target of the port(1) command, for users who already have MacPorts installed and wish to upgrade to a newer release.