Windows still being a widely used OS, WinDirStat is probably one of the most well known tools for displaying disk usage and showing you a visual overview. Analyzing your disk space visually is much more intuitive than trying to understand the raw numbers and compare them in your head. Being the system administrator at work and at home trying to keep my Dropbox on a free plan, because to be honest, how many files do really need to have access to at any point in time?Īnyhow, the following programs make the information of what really takes up space on your Windows machine, Macbook, Linux hacker heaven box and what ever else you installed an operating system on very accessible. Hethey, reading time: ~2 minutes Visualize / Analyze Disk Space on Windows, Linux and Mac OSĭo you want to know which files on your computer take up a ton of space? I do, frequently. 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.Published:, by Jonathan M. 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. Or you can hire me to conduct a performance tuning and security audit of your Rails app. Check out my step-by-step guide on tuning the performance of a Rails application.
0 Comments
Leave a Reply. |