ubuntu-- space occupied question

ubuntu-- virtual machine footprint issues

1 Introduction

vmware ubuntu virtual machine, install the software, being given insufficient memory space, the configuration settings of virtual machines are 50G, filled with small things, but df -lh After a review, the remaining space is less than 1G, using du -lh View
/ home /ubuntu/.cache and / home / ubuntu /. these two files take up huge, the former occupied 1.3G, which occupied 29G.

2 analysis

  • Use general commands to clean up the cache and useless upgrade package
sudo apt-get autoclean 清理旧版本的软件缓存
sudo apt-get clean 清理所有软件缓存
sudo apt-get autoremove 删除系统不再使用的孤立软件

Little change in occupied space

  • Instead of manually processing command (may be at risk)
    sudo APT-GET autoclean should be able to remove the contents of /home/ubuntu/.cache, but not entered into force, only manually delete and re-create.
    / home / ubuntu /. immense space, did not find the right information, bloggers to manually delete and re-create.
    After normal use, but as there is no risk, bloggers do not currently know, do not know much for these two documents, the Internet did not find the right information.

3 treatment

sudo rm /home/ubuntu/.cache -r
touch  /home/ubuntu/.cache

sudo rm  /home/ubuntu/. -r
touch /home/ubuntu/.

reference

1, the cache folder ubunut system cleanup system root .cache super low on disk

Published 496 original articles · won praise 601 · Views 1.55 million +

Guess you like

Origin blog.csdn.net/qq_38880380/article/details/103850061