Skip to content
Advertisement

The Majority of Unix tools are written in what programming language? [closed]

Here is an example of using two Unix tools:

ls | grep "MMC"

ls and grep are two Unix tools.

I believe that both ls and grep are written in C. (Correct me if I’m wrong)

What programming language is used to implement modern-day Unix tools? Are modern-day Unix tools still implemented in C? Or, are other languages used?

Advertisement

Answer

Unix tools are written in a number of languages. Most of the classic tools are written in languages such as C and C++, but Perl and Python are also popular choices. C is still the dominant language, but it seems that Go might find some use in writing Unix command-line utilities.

Advertisement