Linux in a Nutshell, 3Rd Edition
Total Page:16
File Type:pdf, Size:1020Kb
Linux in a Nutshell, 3rd Edition By Ellen Siever, Stephen Spainhour, Stephen Figgins and Jessica P. Hekman ISBN 0-596-00025-1 Third Edition, published August 2000 (See the catalog page for this book.) Table of Contents Copyright Page Preface Chapter 1: Introduction Chapter 2: System and Network Administration Overview Chapter 3: Linux Commands Chapter 4: Boot Methods Chapter 5: Red Hat and Debian Package Managers Chapter 6: The Linux Shells: An Overview Chapter 7: bash: The Bourne-Again Shell Chapter 8: csh and tcsh Chapter 9: Pattern Matching Chapter 10: The Emacs Editor Chapter 11: The vi Editor Chapter 12: The sed Editor Chapter 13: The gawk Scripting Language Chapter 14: CVS and RCS Chapter 15: GNOME Chapter 16: KDE Chapter 17: An Alternative Window Manager: fvwm2 Index Colophon Copyright © 2001 O'Reilly & QKFIN. All rights reserved. file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/index.htm [15/05/2002 18:01:44] (Linux in a Nutshell, 3rd Edition) Linux in a Nutshell, 3rd Edition Copyright © 2000, 1999, 1997 O'Reilly & Associates, Inc. All rights reserved. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472. The O'Reilly logo is a registered trademark of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The use of the horse image in association with Linux is a trademark of O'Reilly & Associates, Inc. While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. Table of Contents 0. Preface Copyright © 2001 O'Reilly & QKFIN. All rights reserved. file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/copyrght.htm [15/05/2002 18:01:56] Preface (Linux in a Nutshell, 3rd Edition) Linux in a Nutshell, 3rd Edition Preface This is a book about Linux, a freely available clone of the Unix operating system for personal computers. Linux was first developed by Linus Torvalds, who built the first Linux kernel and continues to centrally coordinate improvements. The operating system continues to grow under the dedicated cultivation of a host of other programmers and hackers all over the world, all connected through the Internet. Beyond the kernel code, Linux includes utilities and commands from the Free Software Foundation's GNU project, Berkeley Unix (BSD), and a complete port of the X Window System (XFree86) from the X Consortium, in addition to many features written specifically for Linux. Even more recent projects extend Linux in exciting ways, some through changes to the kernel -- such as real-time scheduling and RAID support -- and some through libraries and applications that radically change the user's experience; the GNOME and KDE desktops briefly covered in this book are the most prominent examples. This book is a quick reference for the basic commands and features of the Linux operating system. As with other books in O'Reilly's "In a Nutshell" series, this book is geared toward users who know what they want to do and have some idea how to do it, but just can't remember the correct command or option. We hope this guide will become an invaluable desktop reference for the Linux user. 0.1. Other Resources This book will not tell you how to install and maintain a Linux system. For that, you will probably want O'Reilly's Learning Red Hat Linux or Learning Debian GNU/Linux, by Bill McCarty, which contain Linux distributions on CD-ROM and provide help with installation and configuration. Alternatively, Running Linux by Matt Welsh, Matthias Kalle Dalheimer, and Lar Kaufman is an in-depth guide suitable for all major distributions. For networking information, check out Linux Network Administrator's Guide by Olaf Kirch and Terry Dawson. In addition to O'Reilly's Linux titles, our wide range of Unix, X, Perl, and Java titles may also be of interest to the Linux user. 0.1.1. Online Documentation file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/ch00_01.htm (1 of 4) [15/05/2002 18:02:02] Preface (Linux in a Nutshell, 3rd Edition) The Internet is also full of information about Linux. One of the best resources is the Linux Documentation Project at http://www.linuxdoc.org.It has numerous short guides called HOWTOs, along with some full manuals. For online information about the GNU utilities covered in this book, consult http://www.gnu.org(or one of the dozens of mirror sites around the world). The Free Software Foundation, which is in charge of GNU, publishes its documentation in a number of hard-copy books about various tools. 0.1.2. Linux Journal and Linux Magazine Linux Journal and Linux Magazine are monthly magazines for the Linux community, written and published by a number of Linux activists. They contain articles ranging from novice questions and answers to kernel programming internals. Linux Journal is the oldest magazine and is published by S.S.C. Incorporated, http://www.ssc.com.Linux Magazine is at http://www.linuxmagazine.com. 0.1.3. LinuxUsenet Newsgroups If you have access to Usenet news, the following Linux-related newsgroups are available: comp.os.linux.announce A moderated newsgroup containing announcements of new software, distributions, bug reports, and goings-on in the Linux community. All Linux users should read this group. Submissions may be mailed to [email protected]. comp.os.linux.help General questions and answers about installing or using Linux. comp.os.linux.admin Discussions relating to systems administration under Linux. comp.os.linux.networking Discussions relating to networking with Linux. comp.os.linux.development Discussions about developing the Linux kernel and system itself. comp.os.linux.misc file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/ch00_01.htm (2 of 4) [15/05/2002 18:02:02] Preface (Linux in a Nutshell, 3rd Edition) A catch-all newsgroup for miscellaneous discussions that don't fall under the previous categories. There are also several newsgroups devoted to Linux in languages other than English, such as fr.comp.os.linux in French and de.comp.os.linux in German. 0.1.4. Online Linux Support There are many ways of obtaining help online, where volunteers from around the world offer expertise and services to assist users with questions and problems. The OpenProjects IRC Network is an IRC network devoted entirely to Open Projects -- Open Source and Open Hardware alike. Some of its channels are designed to provide online Linux support services. IRC stands for Internet Relay Chat, and is a network service that allows you to talk interactively on the Internet to other users. IRC networks support multiple channels on which groups of people talk. Whatever you type in a channel is seen by all other users of that channel. There are a number of active channels on the OpenProjects IRC network where you will find users 24 hours a day, 7 days a week who are willing and able to help you solve any Linux problems you may have, or just chat. You can use this service by installing an IRC client like irc-II, connecting to servername >irc.openprojects.org:6667>, and joining the #linpeople channel. 0.1.5. Linux User Groups Many Linux User Groups around the world offer direct support to users. Many Linux User Groups engage in activities such as installation days, talks and seminars, demonstration nights, and other completely social events. Linux User Groups are a great way of meeting other Linux users in your area. There are a number of published lists of Linux User Groups. Some of the better-known ones are: Groups of Linux Users Everywhere http://www.ssc.com/glue/groups LUGlist project http://www.nllgg.nl/lugww LUGregistry http://www.linux.org/users file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/ch00_01.htm (3 of 4) [15/05/2002 18:02:02] Preface (Linux in a Nutshell, 3rd Edition) Copyright Page 0.2. Conventions Copyright © 2001 O'Reilly & QKFIN. All rights reserved. file:///E|/O'Reilly/O'Reilly%20-%20Linux%20in%20a%20Nutshell,%203rd%20Edition/Pages/ch00_01.htm (4 of 4) [15/05/2002 18:02:02] Conventions (Linux in a Nutshell, 3rd Edition) Linux in a Nutshell, 3rd Edition 0.2. Conventions This desktop quick reference follows certain typographic conventions: Bold is used for commands, programs, and options. All terms shown in bold are typed literally. Italic is used to show arguments and variables that should be replaced with user-supplied values. Italic is also used to indicate filenames and directories and to highlight comments in examples. Constant Width is used to show the contents of files or the output from commands. Constant Width Bold is used in examples and tables to show commands or other text that should be typed literally by the user. Constant Width Italic is used in examples and tables to show text that should be replaced with user-supplied values. %, $ are used in some examples as the tcsh shell prompt (%) and as the Bourne or bash shell prompt ($). [ ] surround optional elements in a description of syntax. (The brackets themselves should never be typed.) Note that many commands show the argument [files].