www/content/blog/commands/find-inodes-used.md

15 lines
310 B
Markdown

---
title: "Find where inodes are used"
date: 2018-04-25
description: How to locate what is taking all the inodes in the subdirectory of a given device
tags:
- linux
- toolbox
- unix
---
## The command
{{< highlight sh >}}
find . -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
{{< /highlight >}}