Have a Question?

Categories

Counting inodes per file, per directory

You are here:
< All topics
Table of contents

Occasionally, you may not be aware of the amount of free space on the server during server operation. How much and what kind of data the libraries store.

For example, if you are curious about the number of files and folders (inodes) recursively in each folder under the public_html folder, enter the following command:

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

Depending on the number of folders or files, the run of the issued command will display the data in a shorter time, please be patient.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we correct this article?
Please submit the reason for your vote so that we can improve the article.
Tags:
Previous Choosing the right DNS resolver for VPS
Next How do I make a backup of the database?