How many file types are in a directory

view full story

http://forums.fedoraforum.org – I am not going to try to deceive any one this question is for a homework assignment, so if you're unwilling to help that is ok. The issue is that I am trying to find out if there is a way to use the find utility to show how many different file types there are in a specific directory. The book I have actually gives the answer to even numbered questions and this one is answered but I want to know how to get to ha answer in the easiest way. The directory that is in question is /usr/bin and the answer the book gives is "Approximately 20". This directory has hundreds of files (I haven (HowTos)