file /bin/* | awk -F":" '{print $2}' | sed 's/^[[:space:]]*//' | sed 's/[[:space:]]*$//' | sort | uniq -c | sort -k1nr | more
output example from coreelec:
CoreELEC:~ # file /bin/* | awk -F":" '{print $2}' | sed 's/^[[:space:]]*//' | sed 's/[[:space:]]*$//' | sort | uniq -c | sort -k1nr | more
138 ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped
135 symbolic link to busybox
17 POSIX shell script, ASCII text executable
11 Bourne-Again shell script, ASCII text executable
4 ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped