|
The command-line interface (CLI) is a text environment in which you type commands for Linux to execute and Linux displays text messages in response. In the CLI, you use the keyboard, rather than the mouse, to send instructions to Linux. When you are working with the CLI, you are interacting with a program called a shell. The shell accepts your commands, processes them, and passes them into the kernel, the part of Linux where the basic computer work takes place. Linux offers a choice of several shells, but this book provides information only for Bash, the most popular Linux shell. Linux can boot directly into a command-line environment. You see a screen that is mainly empty, waiting for your input. Rather than seeing a login window, you type your account ID and password on a blank command line. In this type of setup, you use the CLI exclusively. Users with this type of setup don't generally use the desktop at all. Often, users want to use the GUI most of the time, but use the CLI for certain tasks. These users set up Linux to boot in to the desktop. Whenever they want to use the CLI, they can open a CLI window. The desktop is easier to use than the CLI. On the desktop, you select tasks from menus. In the CLI, you need to type the command. It's up to you to know which command, how it's spelled, what arguments and options produce the desired effects, and how to interpret the text output. However, the CLI has some advantages that make its use attractive in some situations:
Using the command-line interface is discussed in detail in Chapter 7. |
|