counting inodes

I like this script:  https://raw.githubusercontent.com/tripflex/inodes/master/inodes

Installation

wget -O ~/bin/inodes https://raw.githubusercontent.com/tripflex/inodes/master/inodes
chmod +x ~/bin/inodes

Usage

Directory path is not required. If nothing is provided the present working directory is used.

Argument Example Description
-d inodes -d /path/to/dir Specify path to directory to scan. Optional, will use pwd if not specified.
-t inodes -t 50000 Display tree output for directories with over 50,000 inodes. Optional.
-e inodes -e 100 Exclude directories that are below 100 inodes. Optional

 

Posted in centos and tagged , .