$ for bin in /bin/* /usr/bin/* /usr/local/bin/*; do
> if [[ -f $bin && "$(cat $bin | head -c 2)" == "#!" ]];then
> echo $bin
> fi
> done | wc -l
544
I imagine most of these are written in Perl (though there's surely a fair amount of Python and shell scripting in there, too), but that's still a high-level language with a complex runtime and dependencies compared to C.
To be fair, there's still about twice as many compiled binaries on that box, but having system commands written in a non-C language is by no means an exception.
After the top 10, most were symbolic links. So, seems shell scripts are by far the most common, with perl and python scripts not too far behind, and ruby making a decent appearance.
To be fair, there's still about twice as many compiled binaries on that box, but having system commands written in a non-C language is by no means an exception.