Linux in a Nutshell [NOOK Book]

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...

See more details below
Linux in a Nutshell

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

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


This excellent desktop reference reviews the basic commands and features found in popular Linux distributions. It's not a man page download, but a well organized guide and reference with explanations, parameters and options. For best understanding, you should be familiar with the Linux operating system, installation requirements and utilities. A basic understanding of shell scripts will also help. This is not a tutorial, but a guide and reference for intermediate to advanced users and programmers.

Read More Show Less

Editorial Reviews

From Barnes & Noble
The authors offer concise, precise discussions of probably 98 percent of what you'll need to know to run or administer Linux on a day-to-day basis! The brand-new Third Edition reflects the latest Linux kernel and distributions, with scads of new coverage: GNOME and KDE configuration, dpkg Debian package manager, new commands, expanded coverage of the rpm Red Hat package manager, and more. Plus everything that made previous editions great: crisp, to-the-point coverage of 800+ commands, more than 100 pages on Linux shells, detailed help with Emacs, vi and sed editing, pattern matching, RCS and CVS revision and version control, and more -- all organized splendidly!
Booknews
Reflecting the rapid and continuous development of the Linux operating system, the reference has been published in 1997, 1999, and again now. Not a tutorial for new users, but a concise handbook of commands (most, but not, for example cdp!), network administration, boot methods, package managers, shells, editors, scripting, version control, and window managers. O'Reilly's series is highly respected in the community by those who recognize what it is and is not. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9781449379209
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 9/19/2009
  • Series: Nutshell
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 6
  • Pages: 944
  • Sales rank: 653,482
  • File size: 7 MB

Meet the Author


Ellen Siever is a writer at O'Reilly & Associates. In addition to this edition of Linux in a Nutshell, she was a co-author of Perl in a Nutshell and co-compiler and co-editor of the Perl Modules Reference for the Unix edition of the PM Resource Kit. Before coming to O'Reilly, she was a programmer for many years, doing mainframe assembler language and database programming addition to computers, her interests include her family, travel, and photography, and she's now trying to learn to draw.
Read More Show Less

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...

Read More Show Less

Table of Contents

Preface
1 Introduction 1
2 System and Network Administration Overview 12
3 Linux Commands 31
4 Boot Methods 496
5 Red Hat and Debian Package Managers 535
6 The Linux Shells: An Overview 571
7 bash: The Bourne-Again Shell 575
8 tcsh: An Extended C Shell 622
9 Pattern Matching 667
10 The Emacs Editor 673
11 The vi Editor 689
12 The sed Editor 723
13 The gawk Scripting Language 734
14 RCS 748
15 CVS 764
16 Graphical Desktop Overview 810
17 GNOME 812
18 KDE 833
19 An Alternative Window Manager: fvwm2 877
Index 897
Read More Show Less

Customer Reviews

Average Rating 4
( 4 )
Rating Distribution

5 Star

(0)

4 Star

(3)

3 Star

(1)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 4 Customer Reviews
  • Anonymous

    Posted February 5, 2000

    Do one thing, Do it well...

    This book is a reference and not a how to. I feel it is an excellent attempt to form a concise reference for almost all of the commands found in a common linux distribution. I would recommend this book for for everyone running linux (or UNIX), but it is not much help for those in need of answers to setup or configuration information (MHO). Instead, this book is written for those who already have a running system and need a memory jog on a particular command or option.

    2 out of 2 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Posted December 15, 2011

    Very good book

    This book is designed for those with little experience using Linux. About half the book is a command reference guide covering most (if not all) commands you can type via terminal.Also includes chapter for package management, Bash, editors (vim, vi, emacs), subversion and virtualization. However no reference is made to Gnome, KDE or similars.

    If you know nothing about Linux, better start with "Running Linux". If you want a more advanced book then "Linux Cookbook", "Linux Networking Cookbook" and "Linux System Administration" are for you.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 26, 2011

    No text was provided for this review.

  • Anonymous

    Posted October 26, 2011

    No text was provided for this review.

Sort by: Showing all of 4 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)