How to list all file extensions in directory To get files extensions type find . -type f | sed -n 's/.*\.\([^.]*\)$/\1/p' | sort | uniq