To scan directories for large files, you can use built-in tools available on your operating system. Here are methods for Windows, macOS, and Linux:
Linux / macOS (Terminal)
1. Find files larger than 100MB in a directory:
2. List top 10 largest files recursively:
3. Only files, excluding directories:
Windows (PowerShell)
1. List top 10 largest files in a folder:
2. Find all files larger than 100MB:
Cross-platform Tools
1. ncdu (Linux/macOS)
Install and run:
Interactive and efficient disk usage viewer.
2. WinDirStat (Windows)
-
Free tool to visualize disk usage.
-
Download: https://windirstat.net/
Let me know your platform and directory target if you want a specific script.
Leave a Reply