Linux in a Nutshell: A Desktop Quick Reference

Everything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins -- people with years of active participation in the Linux community -- Linux in a Nutshell, Sixth Edition, thoroughly covers programming tools, system and network administration tools, the shell, editors, and LILO and GRUB boot loaders.

This updated edition offers a tighter focus on Linux system essentials, as well as more coverage of new capabilities such as virtualization, wireless network management, and revision control with git. It also highlights the most important options for using the vast number of Linux commands. You'll find many helpful new tips and techniques in this reference, whether you're new to this operating system or have been using it for years.

  • Get the Linux commands for system administration and network management
  • Use hundreds of the most important shell commands available on Linux
  • Understand the Bash shell command-line interpreter
  • Search and process text with regular expressions
  • Manage your servers via virtualization with Xen and VMware
  • Use the Emacs text editor and development environment, as well as the vi, ex, and vim text-manipulation tools
  • Process text files with the sed editor and the gawk programming language
  • Manage source code with Subversion and git
1100196571
Linux in a Nutshell: A Desktop Quick Reference

Everything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins -- people with years of active participation in the Linux community -- Linux in a Nutshell, Sixth Edition, thoroughly covers programming tools, system and network administration tools, the shell, editors, and LILO and GRUB boot loaders.

This updated edition offers a tighter focus on Linux system essentials, as well as more coverage of new capabilities such as virtualization, wireless network management, and revision control with git. It also highlights the most important options for using the vast number of Linux commands. You'll find many helpful new tips and techniques in this reference, whether you're new to this operating system or have been using it for years.

  • Get the Linux commands for system administration and network management
  • Use hundreds of the most important shell commands available on Linux
  • Understand the Bash shell command-line interpreter
  • Search and process text with regular expressions
  • Manage your servers via virtualization with Xen and VMware
  • Use the Emacs text editor and development environment, as well as the vi, ex, and vim text-manipulation tools
  • Process text files with the sed editor and the gawk programming language
  • Manage source code with Subversion and git
41.99 In Stock
Linux in a Nutshell: A Desktop Quick Reference

Linux in a Nutshell: A Desktop Quick Reference

Linux in a Nutshell: A Desktop Quick Reference

Linux in a Nutshell: A Desktop Quick Reference

eBook

$41.99  $55.99 Save 25% Current price is $41.99, Original price is $55.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

Everything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins -- people with years of active participation in the Linux community -- Linux in a Nutshell, Sixth Edition, thoroughly covers programming tools, system and network administration tools, the shell, editors, and LILO and GRUB boot loaders.

This updated edition offers a tighter focus on Linux system essentials, as well as more coverage of new capabilities such as virtualization, wireless network management, and revision control with git. It also highlights the most important options for using the vast number of Linux commands. You'll find many helpful new tips and techniques in this reference, whether you're new to this operating system or have been using it for years.

  • Get the Linux commands for system administration and network management
  • Use hundreds of the most important shell commands available on Linux
  • Understand the Bash shell command-line interpreter
  • Search and process text with regular expressions
  • Manage your servers via virtualization with Xen and VMware
  • Use the Emacs text editor and development environment, as well as the vi, ex, and vim text-manipulation tools
  • Process text files with the sed editor and the gawk programming language
  • Manage source code with Subversion and git

Product Details

ISBN-13: 9781449379209
Publisher: O'Reilly Media, Incorporated
Publication date: 09/19/2009
Series: Nutshell
Sold by: Barnes & Noble
Format: eBook
Pages: 944
File size: 3 MB

About the Author

Ellen Siever is a writer and editor specializing in Linux and other open source topics. In addition to Linux in a Nutshell, she coauthored Perl in a Nutshell. She is a long-time Linux and Unix user, and was a programmer for many years until she decided that writing about computers was more fun.

Spainhour is a writer for O'Reilly & Associates.

Stephen Figgins honed many of his computer skills while working as O'Reilly's book answer guy. A life long learner with many interests, Stephen draws on many resources to make difficult topics understandable and accessible. Now living in Lawrence, Kansas, he administrates Linux servers for Sunflower Broadband, a cable company. When not found working with computers, writing, or spending time with his family, you will likely find him outdoors. Stephen teaches wilderness awareness and living skills.

Read an Excerpt


Chapter 5: Red Hat and Debian Package Managers

This chapter describes the two major Linux packaging systems, the Red Hat Package Manager (RPM) and the Debian GNU/Linux Package Manager.

When you want to install applications on your Linux system, most often you'll find a binary or a source package containing the application you want, instead of (or in addition to) a .tar.gz file. A package is a file containing the files necessary to install an application. But note that while the package contains the files you need for installation, the application might require the presence of other files or packages that are not included, such as particular libraries (and even specific versions of the libraries), in order to be able to run. Such requirements are known as dependencies.

Package management systems offer many benefits. As a user, you may find you want to query the package database to find out what packages are installed on the system and their versions. As a system administrator, you need tools to install and manage the packages on your system. And, if you are also a developer, you need to know how to build a package for distribution.

Among other things, package managers:

  • Provide tools for installing, updating, removing, and managing the software on your system.

  • Let you install new or upgraded software directly across a network.

  • Tell you what software package a particular file belongs to or what files a package contains.

  • Maintain a database of packages on the system and their state, so you can find out what packages or versions are installed on your system.

  • Provide dependency checking, so you don't mess up your system with incompatible software.

  • Provide PGP, MD5, or other signature verification tools.

  • Provide tools for building packages.

Any user can list or query packages. However, installing, upgrading, or removing packages generally requires superuser privileges. This is because the packages normally are installed in systemwide directories that are writable only by root. Sometimes you can specify an alternate directory, to install, for example, a package into your home directory or into a project directory where you have write permission.

Both RPM and the Debian Package Manager back up old files before installing an updated package. Not only does this let you go back if there is a problem, but also if you've made changes (to configuration files, for example), they aren't completely lost.

The Red Hat Package Manager

The Red Hat Package Manager (RPM) is a freely available packaging system for software distribution and installation. In addition to Red Hat and Red Hat-based distributions, both SuSE and Caldera are among the Linux distributions that use RPM.

Using RPM is straightforward. A single command, rpm, has options to perform all the package functions. For example, to find out if the Emacs editor is installed on your system, you could say:

% rpm -q emacs
emacs-20.4-4

In addition, the GNOME-RPM program provides an X-based graphical frontend to RPM (that can be run even if you are not running GNOME). This section describes the rpm command and then the gnorpm command that runs GNOME-RPM.

The rpm Command

RPM packages are built, installed, and queried with the rpm command. RPM package names usually end with a .rpm extension. rpm has a set of modes, each with its own options. The format of the rpm command is:

rpm [options] [packages]
With a few exceptions, as noted in the lists of options that follow, the first option specifies the rpm mode (e.g., install, query, update, build, etc.), and any remaining options affect that mode.

In the option descriptions that refer to packages, you'll sometimes see them specified as package-name and sometimes as package-file. The package name is the name of the program or application, such as gif2png. The package file is the name of the RPM file: gif2png-2.2.5-1.i386.rpm.

RPM provides a configuration file for specifying frequently used options. The system configuration file is usually /etc/rpmrc, and users can set up their own $HOME/.rpmrc file. You can use the --showrc option to show the values RPM will use for all the options that may be set in an rpmrc file:

rpm --showrc

The rpm command includes FTP and HTTP clients, so you can specify an ftp:// or http:// URL to install or query a package across the Internet. You can use an FTP or HTTP URL wherever package-file is specified in the commands presented here.

Any user can query the RPM database. Most of the other functions require superuser privileges.

General options

The following options can be used with all modes:

--dbpath path

Use path as the path to the RPM database.

--ftpport port

Use port as the FTP port.

--ftpproxy host

Use host as a proxy server for all transfers. Specified if you are FTPing through a firewall system that uses a proxy.

--help

Print a long usage message (running rpm with no options gives a shorter usage message).

--justdb

Update only the database; don't change any files.

--pipe command

Pipe the rpm output to command.

--quiet

Display only error messages.

--rcfile filename

Use filename as the configuration file instead of the system configuration file /etc/rpmrc or $HOME/.rpmrc.

--root dir

Perform all operations within directory dir.

--version

Print the version number of rpm.

-vv

Print debugging information.

Install, upgrade, and freshen options

Install or upgrade an RPM package. The syntax of the install command is...

Table of Contents

Prefacexi
Chapter 1Introduction1
The Excitement of Linux1
Distribution and Support3
Commands on Linux3
What This Book Offers3
Sources and Licenses5
Beginner's Guide6
Chapter 2System and Network Administration Overview11
Common Commands11
Overview of Networking17
Overview of TCP/IP18
Overview of Firewalls and Masquerading23
Overview of NFS26
Overview of NIS27
Administering NIS28
RPC and XDR28
Chapter 3Linux Commands29
Alphabetical Summary of Commands30
Chapter 4Boot Methods399
The Boot Process399
LILO: The Linux Loader400
Loadlin: Booting from MS-DOS411
Dual Booting Linux and Windows NT/2000412
Boot-time Kernel Options415
Initrd: Using a RAM Disk417
Chapter 5Red Hat and Debian Package Managers418
The Red Hat Package Manager419
The Debian Package Manager430
Chapter 6The Linux Shells: An Overview446
Purpose of the Shell446
Shell Flavors447
Common Features448
Differing Features449
Chapter 7Bash: The Bourne-Again Shell450
Overview of Features450
Invoking the Shell452
Syntax453
Variables462
Arithmetic Expressions468
Command History469
Built-in Commands472
Job Control498
Chapter 8csh and tcsh500
Overview of Features501
Invoking the Shell501
Syntax502
Variables506
Expressions517
Command History520
Command-Line Manipulation524
Job Control529
Built-in csh and tcsh Commands529
Chapter 9Pattern Matching551
Filenames Versus Patterns552
Metacharacters, Listed by Linux Program552
Metacharacters553
Examples of Searching555
Chapter 10The Emacs Editor558
Introduction558
Typical Problems558
Summary of Commands by Group560
Summary of Commands by Key567
Summary of Commands by Name570
Chapter 11The vi Editor576
Review of vi Operations577
vi Command-Line Options579
ex Command-Line Options580
Movement Commands581
Edit Commands583
Saving and Exiting585
Accessing Multiple Files586
Interacting with the Shell586
Macros587
Miscellaneous Commands587
Alphabetical List of Keys in Command Mode588
Syntax of ex Commands590
Alphabetical Summary of ex Commands591
vi Configuration603
Chapter 12The sed Editor607
Conceptual Overview607
Command-Line Syntax608
Syntax of sed Commands609
Group Summary of sed Commands610
Alphabetical Summary of sed Commands611
Chapter 13The gawk Scripting Language619
Conceptual Overview619
Command-Line Syntax620
Patterns and Procedures622
gawk System Variables624
Operators625
Variable and Array Assignments625
Group Listing of gawk Commands626
Alphabetical Summary of Commands626
Chapter 14CVS and RCS634
Basic Concepts634
The CVS Utility636
CVS Administrator Reference638
CVS User Reference655
The RCS Utility683
Overview of RCS Commands683
Basic RCS Operations684
General RCS Specifications685
Alphabetical Summary of RCS Commands689
Chapter 15GNOME701
Desktop Overview702
The Panel704
The Main Menu706
The GNOME Control Center707
Chapter 16KDE724
Desktop Overview725
The Panel and Taskbar730
The KDE Control Center732
Chapter 17An Alternative Window Manager: fvwm2748
Running fvwm2749
Configuration Files749
A Modular Approach750
How to Implement Window Manager Customizations751
A Quick Tour of the fvwm Environment751
Specifying Click-to-Type Focus753
Raising the Focus Window Automatically754
Changing the Size of the Desktop754
Having Multiple Desktops755
Making the Same Window Appear on Every Page757
Starting Windows on Different Desktops and Pages758
If It's Too Hard (or Easy) to Move the Pointer Between Pages759
Adding Keyboard Shortcuts761
Customizing Menus765
The FvwmWinList: Switching the Focus766
Index771
From the B&N Reads Blog

Customer Reviews