{"id":21044616,"url":"https://github.com/tripflex/inodes","last_synced_at":"2025-05-15T17:33:05.213Z","repository":{"id":8471111,"uuid":"10070888","full_name":"tripflex/inodes","owner":"tripflex","description":"Bash/Shell script to count inode usage","archived":false,"fork":false,"pushed_at":"2016-12-28T18:15:37.000Z","size":8,"stargazers_count":85,"open_issues_count":2,"forks_count":23,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-14T18:06:27.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://smyl.es/generating-inode-report-for-linux-ubuntu-centos-etc-with-inodes-shellbash-script/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tripflex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-15T04:23:53.000Z","updated_at":"2023-11-28T06:00:57.000Z","dependencies_parsed_at":"2022-07-21T14:32:19.748Z","dependency_job_id":null,"html_url":"https://github.com/tripflex/inodes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Finodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Finodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Finodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripflex%2Finodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripflex","download_url":"https://codeload.github.com/tripflex/inodes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225365879,"owners_count":17462975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:17:44.667Z","updated_at":"2024-11-19T14:17:45.154Z","avatar_url":"https://github.com/tripflex.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"inodes\n======================\n\n\u003ctable border=\"0\"\u003e\n\u003ctr\u003e\n\u003ctd width=\"60%\"\u003e\u003ch3\u003einodes\u003c/h3\u003eis a Shell/Bash script to count and display directory inode (each file) usage, and size. \n\u003cbr /\u003e\n\u003ch4\u003eFeatures Include:\u003c/h4\u003e\n\u003cul\u003e\n\u003cli\u003eOutput full directory report\u003c/li\u003e\n\u003cli\u003eFilter out directories based on inode size\u003c/li\u003e\n\u003cli\u003eInclude tree view of directories based on inode size\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch4\u003eUpcoming Features:\u003c/h4\u003e\n\u003cul\u003e\n\u003cli\u003eCleaner UI output\u003c/li\u003e\n\u003cli\u003eUpdate check (maybe)\u003c/li\u003e\n\u003cli\u003eNew shorthand arg (ie \"-et 1000\" same as \"-e 1000 -t 1000\")\u003c/li\u003e\n\u003cli\u003eOutput report to HTML file\u003c/li\u003e\n\u003cli\u003eEnhanced tree view to support extended depth (in dev)\u003c/li\u003e\n\u003cli\u003eWatch argument to add cronjob and notify by email\u003c/li\u003e\n\u003c/ul\u003e\n\u003ca href=\"mailto:myles@hostt.net\"\u003eGot an idea?\u003c/a\u003e\n\u003c/td\u003e\n\u003ctd width=\"40%\"\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://smyl.es/img/Selection-381x794-01.png\" target=\"_blank\"\u003e\u003cimg src=\"https://smyl.es/img/Selection_022.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\nTree display will allow you show sub-directories in the output that have over a specific number of inodes.  So if you want a directory with over 50,000 inodes to display the sub-directories in a tree format, use the -t argument.\n\nExclude will allow you to exclude directories that are below a specific amount of inodes, therefore creating a smaller output/report.\n\n## Installation\n``` bash\nwget -O ~/bin/inodes https://raw.smyl.es/inodes/master/inodes\nchmod +x ~/bin/inodes\n```\n\n## Usage\nDirectory path is not required.  If nothing is provided the present working directory is used.\n\nArgument | Example | Description\n--- | --- | ---\n-d | inodes -d /path/to/dir | Specify path to directory to scan.  Optional, will use pwd if not specified.\n-t | inodes -t 50000 | Display tree output for directories with over 50,000 inodes.  Optional.\n-e | inodes -e 100 | Exclude directories that are below 100 inodes.  Optional\n\n## Examples\n\nOutput inode report for /my/dir showing tree output for sub-directories on directories over 50000 inodes\n\n``` bash\ninodes -d /my/dir -t 50000\n```\n\nOutput inode report for /my/dir showing tree output for sub-directories on directories over 50000 inodes, excluding directories with under 10,000 inodes.\n\n``` bash\ninodes -d /my/dir -t 50000 -e 10000\n```\n\nOutput inode report for present working directory without any exclusion or tree output\n\n``` bash\ninodes\n```\n\n## Troubleshooting\nIf you get a \"inodes: command not found\" you need to set the correct path. In installation above we installed into ~/bin/inodes\n\nCheck path with this command and make sure the file is in one of those directories:\n``` bash\necho ${PATH}\n```\n\nIf not you can export path to your .bashrc file\n``` bash\nPATH=~/bin:\"${PATH}\"\nexport PATH\n```\n\nAnd verify\n``` bash\nwhich inodes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripflex%2Finodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripflex%2Finodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripflex%2Finodes/lists"}