Command line interface (CLI)
Linux includes by default a command line interface (CLI) as part of its Unix-like functionality. Distributions specialized for servers or administration may use the CLI as their only interface, for the absence of a graphical user interface (GUI) reduces system resource consumption. As well, Linux machines can run without a monitor attached. Such "headless systems" may be controlled either through X11 remotely, or the CLI must be used via a protocol such as SSH or telnet. On local networks, remote X11 usage is generally acceptable, but over long distances network latency can make a graphical interface impractical.
In the early history of Linux, many operations required CLI usage. The advent of distributions dedicated to desktop and family have changed this. However, online manuals for Linux often mention a CLI-based solution to a problem, even if a GUI-based alternative exists. The CLI is frequently present in the Linux world, whereas GUIs can differ from machine to machine. It also facilitates inter-operation between Linux and non-Linux machines which also have a CLI; Mac OS X machines are one example.
Many important programs do not have a GUI, including most of the GNU userland. This comes from the Unix philosophy of designing a program to do one thing, and to do it well. The CLI is particularly suited for automation of repetitive or delayed tasks, and there is a natural progression where the command to perform a task is first issued directly, and then later reused in a script to provide automation.
Graphical and command line interfaces can also complement each other. There are a host of graphical terminal emulator programs, including xterm, rxvt, aterm, gnome-terminal, and konsole. For these programs, the X11 copy and paste mechanism can facilitate communication between the terminal and GUI applications.
A misconception about Linux states that Linux is almost exclusively CLI-driven. Despite the importance of CLI in Linux, most, if not all, of the tasks can be carried out through GUIs, much like Windows, OSX, Solaris, or any other commercial operating system.[citation needed]
Sunday, June 17, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment