• Ubuntu VMware workstation虚拟机清理缓存文件获得更大硬盘空间


    1 前言

    VMware workstation 15 Player经常使用拖拉复制文件到虚拟机,从而导致了drag_and_drop特别大,占用了很多硬盘空间。

    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ du -d 1 -h
    408K	./OTRviI
    8.0K	./htfWbB
    840K	./f0AldU
    48K	./8ybJ7Z
    714M	./OlzdIA
    2.3M	./2KLDFY
    48K	./GqAB90
    1.5G	./ONeJEv
    12K	./5wCZpk
    12K	./ugyIsY
    1.2M	./TBZCsM
    2.3G	./ZWHp1N
    28K	./8LRpoo
    16K	./cpFGia
    36K	./hWtsLo
    79M	./rRsiU4
    78M	./aoM42S
    1.2G	./b7ecef
    814M	./bYCCLZ
    12K	./nivyQx
    16K	./v89g1K
    48K	./qZIcii
    205M	./TdUz7e
    417M	./iIyoYq
    40K	./OIsuMg
    8.0K	./t83iTV
    308K	./0iuhNU
    74M	./iA2HEG
    904M	./P4WFbz
    714M	./qYFH7j
    8.8G
    

    其中,进入文件夹,可以见到每一次拖拽产生的文件,都在子文件夹中有一份。

    2 清理

    我们删除它即可,就可以很好得腾出硬盘空间了。

    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ ls
    0iuhNU  8LRpoo  b7ecef  f0AldU  hWtsLo  nivyQx  ONeJEv  qYFH7j  t83iTV  ugyIsY
    2KLDFY  8ybJ7Z  bYCCLZ  GqAB90  iA2HEG  OIsuMg  OTRviI  qZIcii  TBZCsM  v89g1K
    5wCZpk  aoM42S  cpFGia  htfWbB  iIyoYq  OlzdIA  P4WFbz  rRsiU4  TdUz7e  ZWHp1N
    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ rm -rf * 
    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ ls
    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ ll
    total 8
    drwx------ 2 fanbi fanbi 4096 Apr  3 00:30 ./
    drwx------ 3 fanbi fanbi 4096 Feb 27 19:33 ../
    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ du -d 1 -h
    4.0K	.
    fanbi@ubuntu:~/.cache/vmware/drag_and_drop$ 
  • 相关阅读:
    习题四 答案
    习题五 答案
    习题三 答案
    习题二 答案
    习题一 答案
    mysqldump 备份
    centos mysql 数据迁移
    常用操作命令
    mysql 日期处理
    thinkphp3.2.3 使用配置
  • 原文地址:https://www.cnblogs.com/fanbi/p/10649239.html
Copyright © 2020-2023  润新知