Skip to content

Instantly share code, notes, and snippets.

@MarcelFox
Forked from jaredmichaelwilliams/gist:ce73746ded0c29b438dc
Last active April 6, 2018 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcelFox/ce7aa00f42b92c3f316b778400c5325d to your computer and use it in GitHub Desktop.
Save MarcelFox/ce7aa00f42b92c3f316b778400c5325d to your computer and use it in GitHub Desktop.
Get iNodes list
#!/bin/bash
echo -e "\nLista de Inodes do diretório: $(pwd)\n\n" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; echo -e "$c\t\t- $d"; done | sort -nr ;echo -e "\nTotal: \t\t$(find $(pwd) | wc -l)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment