Scan your Linux filesystem and get an XML file compatible with GrandPerspective on macOS to visualize disk usage.
- Recursively scans directories and files
- Generates XML output compatible with GrandPerspective
- Skips symbolic links to prevent infinite loops
- Handles file permissions and errors
You can download prebuilt binaries in the GitHub Releases.
brew install kojix2/brew/gpscan
cargo install gpscan
gpscan [OPTIONS] <directory>
gpscan ./foo > result.gpscan
gpscan / | gzip -c > result.gpscan.gz
- Transfer the
result.gpscan
file to your Mac. - Open it in GrandPerspective.
-o, --output <FILE> Output file (default: stdout)
-A, --apparent-size Use apparent size instead of disk usage [false]
-m, --mounts Cross filesystem boundaries during scan [false]
-z, --include-zero-files Include zero-byte files in scan [false]
-e, --include-empty-folders Include empty folders in scan [false]
-q, --quiet Suppress all informational messages [false]
-h, --help Print help
-V, --version Print version
git clone https://github.com/kojix2/gpscan.git
cd gpscan
cargo build --release
This project was created using the full assistance of ChatGPT.