Command processor: Difference between revisions
m +cat |
Note addition of 'command file' capability |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
A '''command processor''' (or '''command line interpreter''') is a [[program]] to which a [[user]] of a computer gives commands, | A '''command processor''' (or '''command line interpreter''') is a [[program]] to which a [[user]] of a computer gives commands, originally by typing strings of [[character]]s on their [[terminal]], which the command processor [[parser|parses]], and then takes the appropriate action to make the desired action happen. | ||
That | That action may be something performed internally to the command processor, or the command processor may load another program (e.g. a [[compiler]]), or it may cause the creation of a whole new [[process]], which is then set to execute some program. | ||
The most well-known command processor at this point is the '''shell''' of [[UNIX]], which is based on the similar program of [[Multics]]. | |||
==History== | ==History== | ||
In early [[operating system]]s, such as [[CTSS]] and [[TOPS-10]], the command processor was built into the OS itself. It soon became apparent (from experience on CTSS) that it could and should be a separate program, run in the user's top-level process, and | In early [[operating system]]s, such as [[CTSS]] and [[TOPS-10]], the command processor was built into the OS itself. It soon became apparent (from experience on CTSS) that it could and should be a separate program, run in the user's top-level process, and Multics took this approach. Other [[time-sharing]] systems (such as [[TENEX]], [[Incompatible Timesharing System|ITS]] and UNIX), followed this example. | ||
Even early [[personal computer]] operating systems such as [[MS-DOS]] made the command interpreter a separate program, although they did not provide processes. | Even early [[personal computer]] operating systems such as [[MS-DOS]] made the command interpreter a separate program, although they did not provide processes. | ||
Originally, all input to the command processor was typed by the user on an [[asynchronous serial line]] terminal | Originally, all input to the command processor was typed by the user on an [[asynchronous serial line|serial line]] terminal. The RUNCOM [[application]] of CTSS was the next major evolutionary stage: it allowed sequences of commands kept in a [[file]] to be run. The 'command file' capabilities of the Multics and UNIX command processors brought this capability into the command processor itself. Finally, with the advent of the [[graphical user interface]] and the [[mouse]], the user may instead click on an [[icon]]. | ||
==Further reading== | ==Further reading== | ||
| Line 20: | Line 20: | ||
[[Category: OS Basics]] | [[Category: OS Basics]] | ||
[[Category: System Applications]] | |||
Latest revision as of 11:31, 3 December 2026
A command processor (or command line interpreter) is a program to which a user of a computer gives commands, originally by typing strings of characters on their terminal, which the command processor parses, and then takes the appropriate action to make the desired action happen.
That action may be something performed internally to the command processor, or the command processor may load another program (e.g. a compiler), or it may cause the creation of a whole new process, which is then set to execute some program.
The most well-known command processor at this point is the shell of UNIX, which is based on the similar program of Multics.
History
In early operating systems, such as CTSS and TOPS-10, the command processor was built into the OS itself. It soon became apparent (from experience on CTSS) that it could and should be a separate program, run in the user's top-level process, and Multics took this approach. Other time-sharing systems (such as TENEX, ITS and UNIX), followed this example.
Even early personal computer operating systems such as MS-DOS made the command interpreter a separate program, although they did not provide processes.
Originally, all input to the command processor was typed by the user on an serial line terminal. The RUNCOM application of CTSS was the next major evolutionary stage: it allowed sequences of commands kept in a file to be run. The 'command file' capabilities of the Multics and UNIX command processors brought this capability into the command processor itself. Finally, with the advent of the graphical user interface and the mouse, the user may instead click on an icon.
Further reading
- Neal Stephenson, In the Beginning ... was the Command Line, Avon, New York, 1999