Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
List all human readable directories greater than 1GB in Linux
#! /usr/bin/env bash
# Find out which directories have high disk utilization:
sudo du -a -h -d 5 -t 1GB /
# Clean up dead and exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# Remove dangling files from docker
docker volume ls -qf dangling=true | xargs -r docker volume rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.