Clean up MacOS hard drive for programmers

Tram Ho

I am programming on a MacBook, hard drive has 128GB. Meanwhile for programming, you need to install a lot of software that takes up a lot of space, such as Xcode, Docker, VMWare. Therefore, I often receive notifications about Disk Storage on the system and have to delete old files that are no longer in use. I want to share with you some simple commands to increase the amount of free hard disk space.

Delete images and containers of docker

Delete node_modules without updating within 30 days

Homebrew cleaning

Delete the outdated gem

If you are an ios developer, then you should delete the pod caches and the files that Xcode created during the build process:

Happy Coding!

Share the news now

Source : Viblo