Mac memory clean up

1, comparing before and after cleanup

Cleanup ago: 
After cleaning up: more memory 20G 

2, thinking

First, I look at a lot of people's experiences stick, in accordance with finally found their way, and they did not find large files noted.
Obviously, the use of different Mac, its memory allocation will surely be different. In the process, they taught me the basic idea memory analysis and some useful commands.
Next, it is to find out my Mac in large files.

3, clean up

Tools: iTerm2
command:
cd ../ , 回退上个文件夹
du -sh * ,查看内存
cd XXX,进入文件夹
pwd,查看当前路径 rm -f XXX,删除文件 rm -rf XXX,删除文件夹 
Step1: enter the most top-level directory

 

 

 

 

Step2: View of memory, the result is shown below

 

 

 

 

Step3: Find large files, layers look, chase down will certainly find

 

 

 

 

Step4: Analysis of large files
According to the current software installation and file name of the folder, you can delete roughly know what the.

 

 

 

Guess you like

Origin www.cnblogs.com/tangyuanby2/p/11578636.html