Skip to content

Instantly share code, notes, and snippets.

@facholi
Created September 16, 2016 20:29
Show Gist options
  • Save facholi/40b988ab1b94009e4da3e41335504a24 to your computer and use it in GitHub Desktop.
Save facholi/40b988ab1b94009e4da3e41335504a24 to your computer and use it in GitHub Desktop.
command line notes
// list all subdirectories of the current directory showing the total of files
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n
// total of files on the current directory
find . -type f | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment