Skip to content

Instantly share code, notes, and snippets.

@muratgozel
Created January 29, 2020 09:27
Show Gist options
  • Save muratgozel/72406b1023a1608ea0a0d67f8907d477 to your computer and use it in GitHub Desktop.
Save muratgozel/72406b1023a1608ea0a0d67f8907d477 to your computer and use it in GitHub Desktop.
Resolving no space left on device error.

Check which filesystem doesn't have any space left:

sudo df -h

Check which folder uses this space most:

sudo find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n

The last printed folder name is the folder that consumes most space in the disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment