創(chuàng)建腳本
#!/bin/sh
#刪除根目錄下的緩存文件
rm -f ~/Library/Preferences/3t.*
rm -rf ~/.3T
rm -rf ~/.cache/ftuwWNWoJl-STeZhVGHKkQ--
#找到無權(quán)限和無法操作之外的文件
ftPath=`find /var/folders -name "ftuwWNWoJl-STeZhVGHKkQ--" -print 2>&1 | fgrep -v "Permission denied" | fgrep -v "Operation not permitted"`
t3Path=`dirname ${ftPath}`/t3
if [ -e ${ftPath} ];then
rm -rf ${ftPath}
fi
if [ -e ${t3Path} ];then
rm -rf ${t3Path}
fi
echo "刪除成功"
執(zhí)行腳本后重啟電腦生效,重啟之前不要打開Studio3T。