28.09.2018 Views

Linux Dummies 9th

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

314<br />

Part IV: Junior Administrator Boot Camp<br />

Shells come equipped to perform certain functions. Most of these features<br />

have evolved over time to assist the command-line jockey with myriad tasks.<br />

Although we only scratch the surface here, you’re encouraged to read the man<br />

page for the bash shell because it’s likely one of the more complete and readable<br />

man pages in existence. You can read all about how to use man pages (the<br />

online Help system in <strong>Linux</strong>) in the “Using Help” section later in this chapter.<br />

Playing the Shell Game<br />

You need a way to tell the computer what you want it to do. In <strong>Linux</strong>, one of<br />

the ways to communicate with the computer is through something called the<br />

shell. A shell isn’t a graphical thing; it’s the sum total of the commands and<br />

syntax you have available to you to tell the operating system what to do so<br />

you can do your work.<br />

The shell environment is rather dull and boring by graphical desktop standards.<br />

When you start the shell, all you see is a plain window with a short<br />

prompt (such as a $) followed by a blinking cursor that awaits your keyboard<br />

entry. (Later in this section, we show you a couple of methods for accessing<br />

the shell.)<br />

The default shell used in <strong>Linux</strong> is the bash shell. This work environment is<br />

based on the original UNIX shell, which is called the Bourne shell and is also<br />

referred to as sh. The term bash stands for the Bourne again shell. The bash<br />

shell comes with most <strong>Linux</strong> distributions.<br />

Getting a shell<br />

You can start a bash session by using a terminal application in your GUI<br />

desktop. The terminal application you use depends (of course) on your<br />

desktop:<br />

✓ Terminal: This is the default terminal used in the GNOME desktop.<br />

To start Terminal from the GNOME menu, choose Applications➪<br />

System Tools➪Terminal if you’re in Fedora, or choose Applications➪<br />

Accessories➪Terminal in Ubuntu. Figure 17-1 shows the Terminal.<br />

Notice the prompt — that’s the shell’s command-line prompt. You<br />

enter your commands there.<br />

✓ Konsole: This is the default terminal used in the KDE desktop. In the<br />

KDE world, choose K Menu➪Applications➪System➪Konsole. The<br />

Konsole interface is shown in Figure 17-2. The command-line prompt<br />

appears in the window.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!