| < Day Day Up > |
|
1. |
What are the four options for selecting packages? |
|
|
2. |
If your PC has two NICs, what would the second one be named, when you look at firewall or network configuration? |
|
|
3. |
What is Disk Druid? |
|
|
4. |
What is the minimum
|
|
|
5. |
What is the maximum size for your SWAP partition? |
|
|
6. |
What is GRUB? |
|
|
7. |
What is LILO? |
|
|
8. |
What is a NIC? |
|
|
9. |
What is RAM? |
|
Answers
|
1. |
Personal Desktop, Workstation, Server, Custom |
|
2. |
eth1 |
|
3. |
A disk partitioning utility. |
|
4. |
The same as the size of your memory. |
|
5. |
Two and one half times the size of your memory. |
|
6. |
Grand Unified Boot Loader, a boot loader for Linux. |
|
7. |
Linux Load—an older boot later for Linux. |
|
8. |
A network interface card. |
|
9. |
Random access memory. |
| < Day Day Up > |
| < Day Day Up > |
Now that you have made it through the installation of Linux, you are probably anxious to begin using it. This chapter is
You will see a wide range of topics in this chapter. Each will be introduced and explained
This chapter also marks the end of Section I, “Linux Fundamentals.” By the time you have completed this chapter and this section, you should be basically familiar with simple Linux concepts, know how to maneuver in the Linux graphical
| < Day Day Up > |
| < Day Day Up > |
If you followed the instructions in Chapter 2, “Installing Linux,”
Before we begin exploring desktops and shells, it would be prudent to get a firm grasp of exactly what a shell is and what a desktop environment is. A desktop environment is simply a graphical environment such as Windows. This means that your interaction with the computer is done via a graphical interface. You push
Even after the discovery of alternative means of interacting with a computer, most people prefer the graphical environment because it is more intuitive and
A shell is simply a command-line interface. A command-line interface is one in which you type commands, and the operating system types out responses. The interface is text only, usually a simple white font on a black or blue background. There are no user-friendly graphics, no buttons or drop-down menus. If you have ever used the DOS prompt in Windows 95 or 98 or the command prompt in Windows NT, 2000, or XP, then you have used a command-line interface. During the early
Now that you know what a shell is, you might
Another reason you might consider working with the command-line interface is that it is more streamlined. You can do anything with a command typed in directly. You do not need to go through a series of graphical steps such as selecting a drop-down menu, then a submenu, then choosing an option. You simply enter the appropriate command. A person who
Linux has a command-line interface called a shell. It looks very similar to the DOS prompt or command prompt from Windows. However, Linux takes the command-line interface to a whole new level. With Windows you have a single command-line interface that has a limited
However, there are interesting and useful features in each of the various shells that are unique to that shell. One useful feature that is common to all shells is that you can write scripts in them. A
script
is a short program that executes one or more
There are multiple shells you can use, each with specific advantages. One of the oldest is the Bourne shell. This was followed by an updated version called the Bourne-again shell (often simply called bash ). The bash shell is the default used in Linux. There are other shells, each with its own advantages and disadvantages. The most commonly used shells are summarized in Table 3.1.
|
Shell |
Features |
|---|---|
|
Bourne |
One of the oldest shells for Unix or Linux. It was created in the late 1970s by Steve Bourne and was included in the seventh edition of Bell Labs Unix. |
|
Bourne-again (bash) |
This is an updated version of the Bourne shell. It is the default shell used in most Linux distributions. |
|
Korn |
This shell was developed by David Korn at the AT&T Bell Labs. This shell is very popular with Linux administrators. |
|
C |
This shell is of particular interest to programmers. With it you can write and run programs written in the C language. You can write the code right in the shell and run it. |
The list of shells in Table 3.1 is not exhaustive. These are the most commonly used shells, and any Linux enthusiast should at least be aware of their existence. In this book we will use the bash shell because it is the most commonly used Linux shell. Remember, however, that most of the basic commands and simple scripts work the same in all shells. It is only the more advanced techniques that are specific to certain shells. That means that what you learn about bash in this book can be applied to the other shells.
With Linux you have the option of having your machine start up in graphical mode or in shell mode. Even if you choose graphical mode, you can launch a shell, just as you can launch a command prompt in Windows 2000 and Windows XP. Once you have a shell open, you can then type commands as you want. If you followed the installation instructions in Chapter 2, your machine starts up in graphical mode. Let’s start by examining how you
This chapter will mention the Windows command prompt several times and compare various Linux shell commands to the equivalent Windows command prompt commands. Many, but not all, Windows users have used command prompt commands. If you have never used a command prompt, it is found in Windows by clicking on the Start menu, choosing Programs, finding Accessories, and then clicking on the Command Prompt.
Assuming your machine starts up with a graphical interface, you will have to start your shell manually. Before you can start working with shell commands, you must first start up a shell. At the bottom-left corner of your screen you should see a Red Hat icon.
| Note |
This assumes you are currently using the KDE interface. If you are not, then you should log out, and at the login screen change to the KDE desktop. It also is true that many distributions will put some other symbol here. In earlier versions of Red Hat you saw a K in this location. |
Clicking on the Red Hat icon is much like clicking on the Start button at the bottom-left corner of Windows. When you click on the Red Hat icon, you are given access to a number of options. You can see the Windows Start menu and the KDE start menu in Figures 3.1 and 3.2.
Figure 3.1:
The KDE start screen.
Figure 3.2:
The Windows Start screen.
You can see that the menus are very similar. This should give you some level of
Figure 3.3:
The shell.
As you can see, this looks a lot like a command prompt in Windows 2000 or Windows XP, or like a DOS prompt from Windows 95/98. This is to be expected, since a shell is basically a command-line interface. The
| < Day Day Up > |