Command line interface
A command line interface or CLI is a method of interacting with a computer by giving it lines of text commands in written form either from keyboard input or from a script. The computer then generally responds with text output to the display or to a file. It contrasts with graphical user interfaces (GUIs).
Examples of programs implementing command line interfaces include the (various) Unix shells, VMS' DCL (Digital Command Language), and related designs like CP/M and MS-DOS's command.com, both based heavily on DEC's RSX and RSTS operating system interfaces. These programs are often called command line interpreters.
There are other programs which use CLIs as well. The CAD program AutoCAD is a prominent example. In some computing environments like the Oberon or Smalltalk user interface, most of the text which appears on the screen may be used for giving commands.
The commands given on a command line interface often are of the form
doSomething how toAFileor
doSomething how toAnInputFile > outputFiledoSomething corresponds to a verb, how to an adverb (it describes how the command should be performed in this instance) and toAFile to an object (often one or more files) against which the command should be run.
Advantages of a command line interface
Even though new users seem to learn GUIs more quickly to perform common operations, well designed CLIs have several advantages:External Links






