恭喜你成为UI中国推荐设计师 (详情)
//百度统计 20220402 uicn

您的意见是我们 UI 中国进步的动力!
点击立即反馈按钮,发表您的意见!
立即反馈
QQ群反馈
您也可以加入UI中国官方反馈群进行反馈!
群号:302892100
备注:反馈问题后@管理员能让我们及时了解您的意见

提交需求

赛事与广告咨询合作,请填写需求表单,我们会在第一时间与您联系!

0/20
0/200

设计大赛

  • 设计大赛
  • 发布广告
  • 发布招聘
  • 其它需求

提交完成
感谢您对UI中国的支持和信赖!
mac笔记本因为sketch自动备份导致的磁盘空间不足问题
0.0°
2016-06-01 原创文章 教程 举报 5044 12 6 0

mac笔记本因为sketch自动备份导致的磁盘空间不足问题

1.磁盘不足起因

mac笔记本因为sketch自动备份导致的磁盘空间不足(跟TimeMachine的备份无关),文件会被存储在root根目录下的DocumentRevisions-V100文件中,且该文件是隐藏的,所以用CleanMyMac等文件进行大文件查询的时候,未必能查看到。

Image title


截图中这个“其他“文件,就是由于sketch历史缓存备份占用磁盘空间导致的,本人实际工作文档只有100G不足的占有量。

2.问题解决方案(在dos终端窗口进行操作,其中涉及到的密码就是我们的个人账户密码)

defaults write com.apple.finder AppleShowAllFiles YES 显示Mac隐藏文件的命令 sudo su - 进入到系统根目录中去 sudo du -sh /.DocumentRevisions-V100 查询sketch历史缓存备份文件总大小 sudo rm -rf /.DocumentRevisions-V100 清除sketch历史缓存备份文件 defaults write -app ‘sketch’ ApplePersistence -bool no 关闭Sketch缓存备份功能 defaults write com.apple.finder AppleShowAllFiles NO 隐藏Mac隐藏文件的命令命令运行后需要按 Command Option Esc 选中 Finder 然后点一下 重新开启 就 Ok 了

3.到这里ketch历史缓存备份应该也顺利清除,备份功能应该也关闭了,大功告成从今以后不必担心“磁盘空间不足“这种问题了。

注意:

Image title


1) 在批量删除sketch历史备份之前,记得用移动设备快速备份当前工作文件,以免意外情况发生。有时候我们的硬盘一般都是NTF格式且为只读状态,这里推荐一款免费的软件名为

Mounty11,可以让帮助我们往 NTFS 格式的存储设备中拷贝文件。下面是放到百度网盘的共享地址:http://pan.baidu.com/s/1gd7VkHX

2) 本人由于文件历史迭代原因,用的一直都是sketch3.3.2,所以文件保存版本都是在DocumentRevisions-V100隐藏文件夹下的,貌似3.4之后sketch就慢慢解决这个问题了。




分割线以下仅供参考

..................................................................................................................................................................................................................

suedeMac-mini:~ root# cd /

suedeMac-mini:/ root# ls -al

total 45

drwxr-xr-x   29 root  wheel   1054 Jan 27 21:27 .

drwxr-xr-x   29 root  wheel   1054 Jan 27 21:27 ..

d--x--x--x    9 root  wheel    306 May 31 17:24 .DocumentRevisions-V100

drwxr-xr-x    2 root  admin     68 May  1  2015 .PKInstallSandboxManager

drwx------    5 root  wheel    170 Aug  5  2015 .Spotlight-V100

d-wx-wx-wt@   2 root  wheel     68 Sep 29  2015 .Trashes

----------    1 root  admin      0 Jul 13  2015 .file

drwx------  639 root  wheel  21726 May 31 17:49 .fseventsd

drwxr-xr-x@   2 root  wheel     68 Sep 10  2014 .vol

drwxrwxr-x+  60 root  admin   2040 May  4 10:38 Applications

drwxr-xr-x+  61 root  wheel   2074 Dec  1 18:42 Library

drwxr-xr-x@   2 root  wheel     68 Jul 13  2015 Network

drwxr-xr-x+   4 root  wheel    136 Aug  5  2015 System

drwxr-xr-x    5 root  admin    170 Sep 29  2015 Users

drwxrwxrwt@   3 root  admin    102 May 31 17:35 Volumes

drwxr-xr-x@  39 root  wheel   1326 Aug  5  2015 bin

drwxrwxr-t@   2 root  admin     68 Jul 13  2015 cores

dr-xr-xr-x    3 root  wheel   4354 May 31 17:24 dev

lrwxr-xr-x@   1 root  wheel     11 Aug  5  2015 etc -> private/etc

dr-xr-xr-x    2 root  wheel      1 May 31 18:19 home

-rw-r--r--@   1 root  wheel    313 Jul 25  2015 installer.failurerequests

dr-xr-xr-x    2 root  wheel      1 May 31 18:19 net

drwxr-xr-x@   6 root  wheel    204 Aug  5  2015 private

drwxr-xr-x@  59 root  wheel   2006 Aug  5  2015 sbin

lrwxr-xr-x@   1 root  wheel     11 Aug  5  2015 tmp -> private/tmp

drwxr-xr-x@  11 root  wheel    374 Dec  1 18:42 usr

lrwxr-xr-x@   1 root  wheel     11 Aug  5  2015 var -> private/var

suedeMac-mini:/ root# sudo du -sh .DucumentVisions-V100

du: .DucumentVisions-V100: No such file or directory

suedeMac-mini:/ root# cd /.DocumentRevisions-V100

suedeMac-mini:.DocumentRevisions-V100 root# ls -al

total 16

d--x--x--x   9 root  wheel   306 May 31 17:24 .

drwxr-xr-x  29 root  wheel  1054 Jan 27 21:27 ..

drwx------@  5 root  wheel   170 May 31 16:14 .cs

-rw-r--r--   1 root  wheel   234 May 31 17:24 LibraryStatus

d--x--x--x   3 root  wheel   102 Sep 29  2015 PerUID

drwx------@  4 root  wheel   136 Sep 29  2015 db-V1

-rw-r--r--@  1 root  wheel   303 Sep 29  2015 metadata

drwx------@  2 root  wheel    68 May 27 08:55 purgatory

drwx-wx--t@  2 root  wheel    68 May 31 16:13 staging

suedeMac-mini:.DocumentRevisions-V100 root# sudo du -sh .DucumentVisions-V100

du: .DucumentVisions-V100: No such file or directory

suedeMac-mini:.DocumentRevisions-V100 root# sudo du -sh.DucumentVisions-V100

du: illegal option -- .

usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m | -g] [-x] [-I mask] [file ...]

suedeMac-mini:.DocumentRevisions-V100 root# sudo sh .DocumentRevisions-V100

sh: .DocumentRevisions-V100: No such file or directory

suedeMac-mini:.DocumentRevisions-V100 root# sudo -sh .DocumentRevisions-V100 

usage: sudo -h | -K | -k | -L | -V

usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]

usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u

            user name|#uid] [-g groupname|#gid] [command]

usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user

            name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] []

usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user

            name|#uid] file ...

suedeMac-mini:.DocumentRevisions-V100 root# sudo du -sh .DocumentRevisions-V100

du: .DocumentRevisions-V100: No such file or directory

suedeMac-mini:.DocumentRevisions-V100 root# cd /

suedeMac-mini:/ root# sudo du -sh .DocumentRevisions-V100

892G .DocumentRevisions-V100

suedeMac-mini:/ root# 

更新:2016-06-01

收藏

12人已收藏

  • 1

    作品

  • 2

    粉丝

  • 7

    关注

相关标签
UI设计

    猜你喜欢

      2016-06-01 原创文章 教程 举报 5044 12 6 0

      mac笔记本因为sketch自动备份导致的磁盘空间不足问题

      0.0°

      你确定要举报mac笔记本因为sketch自动备份导致的磁盘空间不足问题

      如果查出恶意举报,十天内禁止提交任何举报申请。

      0/200

      上传证据: 超过10M的附件请使用网盘地址

      点击上传附件

      对谁可见:

      全部设计师
      • 全部设计师
      • 推荐设计师和认证设计师

      您确认要推荐?

      该作品发布时间:2016年06月01日

      评分

      完整度

      启发性

      勤奋性

      排版布局

      推荐心得

      建议20-200字以内

      0/200

      6
      12
      0

      账号或密码错误,请重新输入

      账号或密码错误,请重新输入

      登录

      手机号

      发送验证码 120s 验证码错误

      登录
      第三方账号登录