List all file with human readable size ls -alh List all extension in directory with file count ls -R | egrep '(\.\w+)$' -o | sort | uniq -c | sort -r Count total files in directory ls -1 | wc -l