![]() ![]() ![]() You should look for a storage analyzer that provides a user-friendly interface which simplifies finding the tool’s features. Following are some factors to consider when choosing an app to analyze your Mac’s disk space. There are many products out there that claim to be able to do the job. Selecting the right hard drive analyzer for your Mac can be challenging. Regularly checking the Disk Inventory X for unnecessary disk usage bloats is the a good practice that will help you keep your disk usage in order.Free Download How to Choose a Space Analyzer Solution for Mac I hope those tips will help you to clean the vast amounts of disk space easily. But as long as you run it in your own ~/Programming folder it shouldn’t do any damage. Just watch out if you’re running it in a top-level (i.e., home) folder because it might remove some necessary system-level dependencies. name "node_modules" -type d -prune -exec du -sh '' + You can use this command to list all the top-level node_modules folders together with their corresponding size: find. Just a few modern JavaScript projects developed locally could easily consume tens of GBs of disk space. A honorable mention - node_modulesĪ blog post about missing disk space would not be complete without dedicating a paragraph to everyone’s beloved node_modules. Make sure to double-check if you don’t have data that will be difficult to recover before removing a container or a volume.Ĭheck out the Docker documentation to read more about other pruning commands. The total cleanup works for me because all my local Docker projects can be easily recreated using seed data. However, if you’d like to do a more global cleanup including Docker containers, networks, volumes, and cache, use this command: docker system prune -volumes You can remove the Docker image by running the following command: docker rmi -f IMAGE_IDįrom my experience, images usually take most of the disk space. On my computer, I’ve had various versions of the postgres image, each taking a considerable amount of space. Postgres 12.2-alpine ae192c4d3ada 8 months ago 152MB Postgres 11.8-alpine a7f73db0b977 6 months ago 156MB Pihole/pihole latest 4642d275ab73 4 months ago 296MB Now run docker images to see which images are taking up most of the disk space: docker images You can check how much of your disk space Docker has acquired so far by running: docker system df Reduce Docker disk space usageĭocker has a bad reputation for devouring large amounts of disk space. Disk Inventory X is invaluable in identifying and fixing such cases. I can imagine other stacks similarly silently consuming the disk space. Apparently, many applications are keen to cache data while neglecting to do the cleanup afterward. I’ve noticed hundreds of MBs related to Yarn that I did not use for a year or so. On my computer the significant bulk of unnecessary data was in the ~/Library/Caches folder. Let’s now discuss the lowest hanging fruits in reducing storage usage. ![]() ![]() The program offers straightforward UI allowing you to at a glance examine your storage usage: On macOS, the simplest way to install it is to use the Homebrew Cask. The best way to identify where the bulk of your storage space is allocated is to use Disk Inventory X application. As a result, I’ve managed to free tens of GBs of storage and could finally update XCode to the newest version. I’ve recently performed the same analysis and cleanup on my MacBook Pro. In this blog post, I’ll describe various ways to quickly and safely clean vast amounts of storage on a Mac Book used for web development. Installing or updating an app ( ahem, ahem XCode…) on macOS is sometimes surprisingly difficult because of missing disk space. Your Slack team could use some anonymous honesty? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |