Mac指令

中国用户访问最快的苹果服务器将DNS服务器修改成:
178.79.131.110


重置PRAM和NVRAM:关闭电脑。在键盘上找到以下按键:

Command、Option、P 和R。您将需要在步骤4 中同时按下这些键。启动电脑。按住Command-Option-P-R 键。必须在显示灰屏前按下此组合键。按住上述键,直到电脑重新启动,您会再次听到启动声。松开这些键。

刷新 DNS 缓存的方法:

sudo killall -HUP mDNSResponder

 

禁用开机启动音:
sudo nvram SystemAudioVolume=%80
恢复正常
sudo nvram -d SystemAudioVolume

国内OS X Mountain Lion 下载很慢,请将 DNS 修改成168.95.1.1

 

禁用spotlight服务:sudo mdutil -a -i off
删除菜单栏spotlight图标:cd /System/Library/CoreServices/
sudo mv Search.bundle/ Search2.bundle/
恢复方法:启用spotlight服务:sudo mdutil -a -i on
恢复菜单栏图标:cd /System/Library/CoreServices/

sudo mv Search2.bundle/ Search.bundle/

 

显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false


系统升级10.8.2ssd要重新做边TRIM了。。终端命令方法如下:
命令如下:
先在终端输入下面命令,运行并输入密码:
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original


再输入下面命令,回车:
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x4D)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage


然后分别输入以下命令
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
Reboot


重启系统!

posted on 2012-12-09 09:37  Even的生活点滴  阅读(541)  评论(0)    收藏  举报

导航