Mac系统清理

本博文为原创,遵循CC3.0协议,转载请注明出处:http://blog.csdn.net/lux_veritas/article/details/17101493

-----------------------------------------------------------------------------------------------------------------------------------------------------------------


用了近一年的mini,最近开机速度有些不给力,多方查阅资料,选了两篇够用的,【1】,【2】

在以上两篇的基础上,说一下我的选择:


00. DashBoard已关闭,dock效果已关闭,桌面图标已清


0. 日常维护脚本

     /etc/periodic 目录下的脚本用于日常维护,改为手动运行,在bashrc中添加如下函数,手动执行cleanmac_func命令即可

cleanmac_func()
{
    BASE_DIR=/etc/periodic
    for period in `ls $BASE_DIR` ; do
        for cmd in `ls $BASE_DIR/$period` ; do
            sudo /bin/sh $BASE_DIR/$period/$cmd
        done
    done
}

1. 启动项清理

     备份以下目录中的plist,移除即可
     /System/Library/StartupItems
     /Library/StartupItems

     /Library/LaunchAgents
     /Library/LaunchDaemons
     ~/Library/LaunchAgents
     
2. 缓存清理

    清理一些浏览器缓存,软件升级的缓存
     ~/Library/Caches



References:

1. http://jingyan.baidu.com/article/a948d651b008a20a2dcd2ed4.html

2. http://www.tanhao.me/talk/1287.html

你可能感兴趣的:(Mac系统清理)