So I just started my operating systems class at my university, and my professor said something that interested me, something that I'm not sure if I agree with.

He was introducing the various shells available on windows and linux, and how they compared in power and use. Now, I've quite a few classes with this professor, and I know he has a very high opinion of Unix-like operating systems like Linux (citing that "the internet was built on Linux", etc.). He also has a strong dislike for Windows and Microsoft in general.

In his lecture, he gave use the following figures:

Linux shells give you access to 4000-6000 commands.
Windows cmd.exe 100-120 commands.
Windows powershell 400-500 commands.

I have the following questions about this collection of figures:

  • Are these number roughly accurate? I can't find anywhere on the web that lays out these numbers in a clear way.
  • Does the number of commands that a shell has at its disposal give an accurate description of how powerful or useful that shell is? On one hand, a multitude of commands may reflect a vast amount of capability and power, but on the other hand, a shell with a cleaner design and less commands may be more powerful in the end by being more useful and consise.

I'm really not sure what to make of this information, or if I'm just reading into it a bit too much. I've used bash extensively, and cmd quite a bit, so I'm familiar with both them in a practical sense. Powershell is completely foreign to me, however.

link|improve this question
This is an interesting question, but I think it is essentially opinion, which is off-topic. However, the "number of commands" being a measure of power does seem pretty simplistic. Even the measure isn't right. The 4000 "commands" on a linux box are just the number of executables that happen to be in the path. This increases with each package installed. Windows doesn't put every executable in the path so it isn't a sensible comparison. Besides, it is what you can achieve that denote power, not how many things you can type in and get a result. – Paul Jan 11 at 5:39
The "power" of any language is in my experience determined by how simple solutions exist to common problems. – l0b0 Jan 11 at 7:54
A teacher must not be tied to any system or language and hopefully have an open and critical mind. This is not the case. As @Paul says, the numbers that your teacher show indicates the numbers of accesible programs, and that don't says anything about the power of a shell. – voodoomsr Jan 11 at 14:15
Thanks for the comments! This has been helpful in my understanding of shells. – Nathan Jones Jan 11 at 18:49
When I just hit Double-Tab in my Linux-shell (bash), it says: Display all 3845 possibilities? This should be the number of programs in the PATH plus shell-buildins and aliases and function names, minus duplicates (echo, for example). Since you can have multiple aliases for a command, that doesn't mean much. And since a simple command might have zillions of options (convert, from ImageMagick, for example), or could be implemented as zillions of programs instead, it doesn't mean much to count the numbers. – user unknown Jan 14 at 10:12
feedback

closed as not constructive by Sathya Jan 11 at 7:17

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

Browse other questions tagged or ask your own question.