|
|
Command Line Interface#REDIRECT Command line interface Command line interface[[Image:Rxvt.png|thumb|Rxvt is a VT102 terminal emulator]] A command line interface or CLI is a method of human-computer interaction by giving it lines of textual commands (that is, a sequence of characters) either from computer keyboard input or from a script (computer programming). It is occasionally also referred to as a CLUE, for Command Line User Environment. In its simplest form, the user types a command after the computer displays a command prompt. The computer then carries out the command given. The term is usually used in contrast to a graphical user interface (GUI) in which commands are typically issued by moving a pointer (via a pointing device) and/or pressing a key (that is, by "clicking", often on a key mounted on a mouse). Programs that implement these interfaces are often called command line interpreters. Examples of such programs include the various different Unix shells, OpenVMS' DIGITAL Command Language (Digital Command Language), and related designs like CP/M and DOS's command.com, both based heavily on Digital Equipment Corporation's RSX and RSTS operating system interfaces (which were also command line interfaces). Microsoft claims their next major operating system, code-named Windows Longhorn, will include an enhanced command line interface named MSH (shell) (Microsoft Shell, codename ''Monad''), which combines the features of traditional Unix shells with the object-oriented Microsoft .NET. Some applications provide command lines as well. The CAD program AutoCAD is a prominent example. In some computing environments like the Oberon operating system 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 are often of the form [doSomething] [how] [toAFile] or [doSomething] [how] < [inputFile] > [outputFile] ''doSomething'' corresponds to a verb, ''how'' to an adverb (it describes how the command should be performed in this instance—for example, should it be particularly "verbose", or particularly "quiet") and ''toAFile'' to an object (often one or more files) against which the command should be run. The standalone '>' in the second example is a redirection character, telling the operating system (i.e., usually a command shell interpreter) to send the output of the previous commands (that is, those on the left of '>') to some other place (that is, the file named to the right of the '>'). Another common and important redirection character is the Vertical bar ('|'), which tells the CLI to treat the output of this command as the input of another; this can be a very powerful mechanism for the user, as explained under pipeline (Unix) and pipes and filters. == 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: * Skilled users are able to use a command line faster than a GUI for many tasks. This advantage is magnified by tab completion and by the fact that programs intended to be run from the command line are often given very short names. * Options and operations are often invokable in a consistent form, one "level" away from the basic command. With most GUIs, the available operations and options may appear on different menus with differing usage patterns. They may be separated on several different menu levels as well. In either case, different applications (or utilities) may have different patterns; if so there is little advantage in either approach. Both are likely to annoy users. * All options and operations are controlled in more or less the same way. The "more or less" in this case is a common accusation against CLIs: it ''should'' be no more difficult to understand and perform a rare operation than a common one, but in practice it may require learning previously unencountered syntax. However, few GUIs offer even comparable access to their entire range of available options. * CLIs can often double as scripting programming languages and can perform operations in a batch processing mode without user interaction. That means that once an operation is analyzed and understood, a "script" implementing that understanding can be written and saved. The operation can thereafter be carried out with no further analysis and design effort. With GUIs, users must start over at the beginning every time, as GUI scripting (if available at all) is almost always more limited—although macros can sometimes be used in a similar way. Simple commands do not even need an actual script, as the completed command can usually be assigned a name (an "alias") and executed simply by typing that name into the CLI. == Disavantages of a command line interface == * CLIs have a steeper learning curve than GUIs—more time and effort must be devoted to learning the basics before even simple tasks may be accomplished. * CLIs are unsuited to certain tasks, such as image and sound editing. ==See also== * Text user interface ==External links== *[http://www.spack.org/index.cgi/InTheBeginningWasTheCommandLine "In the Beginning was the Command Line"] By Neal Stephenson - A gentle introduction to the difference between command line interfaces and GUIs, and the history of their development. * The Interaction-Design.org Encyclopedia entry on [http://www.interaction-design.org/encyclopedia/interaction_styles.html Interaction Styles, comparing Command Line Interfaces with other Interaction Styles] *[http://www.developer.com/net/net/article.php/3286851 ''Coming Soon to Windows: The Microsoft Shell (MSH)'' by Jason Nadal] Human-computer interaction Computing Software engineering Software architecture Command line interfaceI do not agree with the part about the advantages of CLI's. Consistence is not an advantage of CLI's over GUI. It is an advantage over carefully designed (as said here) CLI's over uncarefully designed GUI's. In my opinion the biggest advantage of a CLI's is that it can become a second language. If I want a calendar in my CLI, I just type calendar instead of moving my mouse to the start button, clicking, looking where the item programs is, moving my mouse there, then find and move to accesoires then find and move to calendar (assuming you have a calendar there). :(By the way, please sign your edits to talk pages.) If you disagree with parts of the article, rewrite them. If you think it's incomplete, feel free to add a section on the disadvantages. User:Grendelkhan|User_talk:Grendelkhan 16:13, 2004 Jun 4 (UTC) ---- ''At least one person also calls it a CLUE, for Command Line User Environment.'' That sentence is a bit odd, anybody want to explain it? Why ''At least one person''? User:Edward 13:16, 4 Jun 2004 (UTC) :The Linux Documentation Project's ''[http://www.tldp.org/guides.html#intro-linux Introduction to Linux - A Hands on Guide]'' uses the acronym CLUE in the opening section. I'm pretty sure there have been others as well. User:Grendelkhan|User_talk:Grendelkhan 16:13, 2004 Jun 4 (UTC) ::Yes "at least one person calls it..." just looks weird - I'll change it to "It is occasionally called..." I think. - User:IMSoP 13:12, 20 Jun 2004 (UTC) Command Shell monad won't be ready for inclusion in Longhorn, guys... See other meanings of words starting from letter: CCA | CB | CD | CE | CF | CG | CH | CI | CJ | CK | CL | CM | CN | CO | CP | CR | CS | CT | CU | CW | CX | CY | CZ |Words begining with Command_line_interface: Command-line_interface Command_Line_Interface Command_line_interface Command_line_interface
Sponsored links: praca, nurkowanie.
|
These materials are based on Wikipedia and licensed under the GNU FDL
YouTube.com videos better site than Turbo Tax 2007 |
|
|