Linux Pocket Guide: What's in This Book?
Linux Pocket Guide: What's in This Book?
1
We’ve organized the material by function to provide a concise
learning path. For example, to help you view the contents of a
file, we introduce many file-viewing commands together: cat
for short text files, less for longer ones, od for binary files, and
so on. Then we explain each command in turn, briefly present‐
ing its common uses and options.
We assume you have access to a Linux system and know how to
log in with your username and password. If not, get your hands
on a Linux “live” DVD, such as Ubuntu, Fedora, or Knoppix,
which you can boot on most computers to play around with
Linux.
What’s Linux?
Linux is a popular, open source operating system that competes
with Microsoft Windows and Mac OS X. Like these other oper‐
ating systems, Linux has a graphical user interface with win‐
dows, icons, and mouse control. However, the real power of
What’s a Distro?
Linux is extremely configurable and includes thousands of pro‐
grams. As a result, different varieties of Linux have arisen to
serve different needs and tastes. They all share certain core
components but may look different and include different pro‐
grams and files. Each variety is called a distro (short for “distri‐
bution”). Popular distros include Ubuntu Linux, Red Hat
Enterprise Linux, Slackware, and Mint among others. This
book covers core material that should apply to every distro.
What’s a Command?
A Linux command typically consists of a program name fol‐
lowed by options and arguments, typed within a shell, like this:
wc -l myfile
The program name ( wc, short for “word count”) refers to a pro‐
gram somewhere on disk that the shell will locate and run.
Options, which usually begin with a dash, affect the behavior of
the program. In the preceding command, the -l option tells wc
to count lines and not words. The argument myfile specifies
the file that wc should read and process.
Commands can have multiple options and arguments. Options
may be given individually:
wc -l -w myfile Two individual options
or combined after a single dash:
Shell prompts
Before you can type a command, you must wait for the shell to
display a special symbol, called a prompt. A prompt means, “I
am waiting for your next command.” Prompts come in all