Quantcast
Channel: DevOps tips & tricks
Viewing all articles
Browse latest Browse all 181

Fedora disk cleanup

$
0
0

HOWTO

 

 

Disk usage - show largest folders

[dave@dave ~]$ sudo du --exclude="/home" -x -h -a / | sort -r -h | head -30
65G /
49G /var
42G /var/lib
29G /var/lib/libvirt/images
29G /var/lib/libvirt
21G /var/lib/libvirt/images/guest.img
11G /usr
9.3G /var/lib/docker
8.3G /var/lib/libvirt/images/Fedora-Workstation-31
6.5G /var/lib/libvirt/images/Fedora-Workstation-31/Fedora-Workstation-31-20180518.0.x86_64.qcow2
4.7G /var/lib/docker/overlay2
4.6G /var/lib/docker/volumes
3.8G /usr/lib64
3.1G /usr/share
2.9G /var/cache
2.4G /var/lib/docker/volumes/minikube/_data
2.4G /var/lib/docker/volumes/minikube
2.3G /var/lib/docker/volumes/minikube/_data/lib
2.2G /var/lib/snapd
2.1G /var/lib/docker/volumes/minikube/_data/lib/docker/overlay2
2.1G /var/lib/docker/volumes/minikube/_data/lib/docker
2.1G /git
2.0G /var/log
1.9G /var/log/journal/355c2948e7a04c958080cf5f5d683b14
1.9G /var/log/journal
1.9G /usr/lib
1.8G /var/lib/libvirt/images/Fedora-Workstation-31/Fedora-Workstation-Live-x86_64-31-1.9.iso
1.7G /app
1.5G /var/snap/microk8s/common/var
1.5G /var/snap/microk8s/common

Docker cleanup
[dave@dave ~]$ docker system prune -a
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated to them
- all build cache

Are you sure you want to continue? [y/N] y


Viewing all articles
Browse latest Browse all 181

Trending Articles