Linux in a Nutshell covers the core commands for common Linux distributions. This isn't a scaled-down quick reference of common commands, but a complete reference to all user, programming, administration, and networking commands, with complete lists of options. New material in the third edition includes what's commonly required for customizing the GNOME and KDE desktops and the fvwm2 window manager, the dpkg Debian package manager, an expanded investigation of the rpm Red Hat package manager, and many new commands. Contents also include: LILO and Loadlin (boot) options Shell syntax and variables for the bash , csh , and tcsh shells Pattern matching Emacs and vi editing commands Linux in a Nutshell is a must for any Linux user; it weighs less than a stack of manual pages, but delivers everything needed for common, day-to-day use. TOC......Page 1 Copyright......Page 2 Preface......Page 3 Conventions......Page 7 We'd Like to Hear from You......Page 9 Acknowledgments......Page 10 1. Introduction......Page 11 1.2. Distribution and Support......Page 14 1.3. Commands on Linux......Page 15 1.4. What This Book Offers......Page 16 1.5. Sources and Licenses......Page 19 1.6. Beginner's Guide......Page 21 2. System and Network Administration Overview......Page 28 Overview of Networking (Linux in a Nutshell, 3rd Edition)......Page 38 Overview of TCP/IP (Linux in a Nutshell, 3rd Edition)......Page 41 Overview of Firewalls and Masquerading (Linux in a Nutshell, 3rd Edition)......Page 48 Overview of NFS (Linux in a Nutshell, 3rd Edition)......Page 51 Overview of NIS (Linux in a Nutshell, 3rd Edition)......Page 53 Administering NIS (Linux in a Nutshell, 3rd Edition)......Page 55 RPC and XDR (Linux in a Nutshell, 3rd Edition)......Page 57 3. Linux Commands (Linux in a Nutshell, 3rd Edition)......Page 58 4. Boot Methods (Linux in a Nutshell, 3rd Edition)......Page 409 LILO: The Linux Loader (Linux in a Nutshell, 3rd Edition)......Page 412 Loadlin: Booting from MS-DOS (Linux in a Nutshell, 3rd Edition)......Page 422 Dual Booting Linux and Windows NT/2000 (Linux in a Nutshell, 3rd Edition)......Page 425 4.5 Boot-time Kernel Options......Page 428 initrd: Using a RAM Disk (Linux in a Nutshell, 3rd Edition)......Page 431 5. Red Hat and Debian Package Managers (Linux in a Nutshell, 3rd Edition)......Page 432 The Debian Package Manager (Linux in a Nutshell, 3rd Edition)......Page 446 6. The Linux Shells: An Overview (Linux in a Nutshell, 3rd Edition)......Page 462 Shell Flavors (Linux in a Nutshell, 3rd Edition)......Page 464 Common Features (Linux in a Nutshell, 3rd Edition)......Page 466 Differing Features (Linux in a Nutshell, 3rd Edition)......Page 468 7. bash: The Bourne-Again Shell (Linux in a Nutshell, 3rd Edition)......Page 470 Invoking the Shell (Linux in a Nutshell, 3rd Edition)......Page 472 Syntax (Linux in a Nutshell, 3rd Edition)......Page 475 Variables (Linux in a Nutshell, 3rd Edition)......Page 484 Arithmetic Expressions (Linux in a Nutshell, 3rd Edition)......Page 491 Command History (Linux in a Nutshell, 3rd Edition)......Page 493 Built-in Commands (Linux in a Nutshell, 3rd Edition)......Page 496 Job Control (Linux in a Nutshell, 3rd Edition)......Page 550 8. csh and tcsh (Linux in a Nutshell, 3rd Edition)......Page 552 Invoking the Shell (Linux in a Nutshell, 3rd Edition)......Page 555 Syntax (Linux in a Nutshell, 3rd Edition)......Page 557 Variables (Linux in a Nutshell, 3rd Edition)......Page 561 Expressions (Linux in a Nutshell, 3rd Edition)......Page 579 Command History (Linux in a Nutshell, 3rd Edition)......Page 584 Command-Line Manipulation (Linux in a Nutshell, 3rd Edition)......Page 590 Job Control (Linux in a Nutshell, 3rd Edition)......Page 596 Built-in csh and tcsh Commands (Linux in a Nutshell, 3rd Edition)......Page 598 9. Pattern Matching (Linux in a Nutshell, 3rd Edition)......Page 638 Metacharacters, Listed by Linux Program (Linux in a Nutshell, 3rd Edition)......Page 640 Metacharacters (Linux in a Nutshell, 3rd Edition)......Page 642 Examples of Searching (Linux in a Nutshell, 3rd Edition)......Page 645 10. The Emacs Editor (Linux in a Nutshell, 3rd Edition)......Page 648 Typical Problems (Linux in a Nutshell, 3rd Edition)......Page 650 Summary of Commands by Group (Linux in a Nutshell, 3rd Edition)......Page 653 Summary of Commands by Key (Linux in a Nutshell, 3rd Edition)......Page 662 Summary of Commands by Name (Linux in a Nutshell, 3rd Edition)......Page 668 11. The vi Editor (Linux in a Nutshell, 3rd Edition)......Page 676 vi Command-Line Options (Linux in a Nutshell, 3rd Edition)......Page 682 ex Command-Line Options (Linux in a Nutshell, 3rd Edition)......Page 684 Movement Commands (Linux in a Nutshell, 3rd Edition)......Page 687 Edit Commands (Linux in a Nutshell, 3rd Edition)......Page 691 Saving and Exiting (Linux in a Nutshell, 3rd Edition)......Page 694 Accessing Multiple Files (Linux in a Nutshell, 3rd Edition)......Page 696 Interacting with the Shell (Linux in a Nutshell, 3rd Edition)......Page 697 Macros (Linux in a Nutshell, 3rd Edition)......Page 698 Miscellaneous Commands (Linux in a Nutshell, 3rd Edition)......Page 700 Alphabetical List of Keys in Command Mode (Linux in a Nutshell, 3rd Edition)......Page 701 Syntax of ex Commands (Linux in a Nutshell, 3rd Edition)......Page 705 Alphabetical Summary of ex Commands (Linux in a Nutshell, 3rd Edition)......Page 708 vi Configuration (Linux in a Nutshell, 3rd Edition)......Page 727 12. The sed Editor (Linux in a Nutshell, 3rd Edition)......Page 732 Command-Line Syntax (Linux in a Nutshell, 3rd Edition)......Page 734 Syntax of sed Commands (Linux in a Nutshell, 3rd Edition)......Page 736 Group Summary of sed Commands (Linux in a Nutshell, 3rd Edition)......Page 738 Alphabetical Summary of sed Commands (Linux in a Nutshell, 3rd Edition)......Page 741 13. The gawk Scripting Language (Linux in a Nutshell, 3rd Edition)......Page 749 Command-Line Syntax (Linux in a Nutshell, 3rd Edition)......Page 751 Patterns and Procedures (Linux in a Nutshell, 3rd Edition)......Page 754 gawk System Variables (Linux in a Nutshell, 3rd Edition)......Page 757 Operators (Linux in a Nutshell, 3rd Edition)......Page 759 Variable and Array Assignments (Linux in a Nutshell, 3rd Edition)......Page 761 Group Listing of gawk Commands (Linux in a Nutshell, 3rd Edition)......Page 763 Alphabetical Summary of Commands (Linux in a Nutshell, 3rd Edition)......Page 764 14. CVS and RCS (Linux in a Nutshell, 3rd Edition)......Page 771 The CVS Utility (Linux in a Nutshell, 3rd Edition)......Page 775 CVS Administrator Reference (Linux in a Nutshell, 3rd Edition)......Page 777 CVS User Reference (Linux in a Nutshell, 3rd Edition)......Page 795 The RCS Utility (Linux in a Nutshell, 3rd Edition)......Page 829 Overview of RCS Commands (Linux in a Nutshell, 3rd Edition)......Page 830 Basic RCS Operations (Linux in a Nutshell, 3rd Edition)......Page 832 General RCS Specifications (Linux in a Nutshell, 3rd Edition)......Page 834 Alphabetical Summary of RCS Commands (Linux in a Nutshell, 3rd Edition)......Page 839 15. GNOME (Linux in a Nutshell, 3rd Edition)......Page 858 The Panel (Linux in a Nutshell, 3rd Edition)......Page 862 The Main Menu (Linux in a Nutshell, 3rd Edition)......Page 865 The GNOME Control Center (Linux in a Nutshell, 3rd Edition)......Page 869 16. KDE (Linux in a Nutshell, 3rd Edition)......Page 888 The Panel and Taskbar (Linux in a Nutshell, 3rd Edition)......Page 897 The KDE Control Center (Linux in a Nutshell, 3rd Edition)......Page 899 17. An Alternative Window Manager: fvwm2 (Linux in a Nutshell, 3rd Edition)......Page 918 Configuration Files (Linux in a Nutshell, 3rd Edition)......Page 921 A Modular Approach (Linux in a Nutshell, 3rd Edition)......Page 923 How to Implement Window Manager Customizations (Linux in a Nutshell, 3rd Edition)......Page 924 A Quick Tour of the fvwm Environment (Linux in a Nutshell, 3rd Edition)......Page 925 Specifying Click-to-Type Focus (Linux in a Nutshell, 3rd Edition)......Page 928 Raising the Focus Window Automatically (Linux in a Nutshell, 3rd Edition)......Page 930 Changing the Size of the Desktop (Linux in a Nutshell, 3rd Edition)......Page 931 Having Multiple Desktops (Linux in a Nutshell, 3rd Edition)......Page 933 Making the Same Window Appear on Every Page (Linux in a Nutshell, 3rd Edition)......Page 935 Starting Windows on Different Desktops and Pages (Linux in a Nutshell, 3rd Edition)......Page 937 17.12. If It's Too Hard (or Easy) to Move the Pointer Between Pages......Page 940 Adding Keyboard Shortcuts (Linux in a Nutshell, 3rd Edition)......Page 943 Customizing Menus (Linux in a Nutshell, 3rd Edition)......Page 949 The FvwmWinList: Switching the Focus (Linux in a Nutshell, 3rd Edition)......Page 951 Index: Linux in a Nutshell (Linux in a Nutshell)......Page 954 Index: 0 (Linux in a Nutshell)......Page 955 Index: A (Linux in a Nutshell)......Page 957 Index: B (Linux in a Nutshell)......Page 960 Index: C (Linux in a Nutshell)......Page 963 Index: D (Linux in a Nutshell)......Page 971 Index: E (Linux in a Nutshell)......Page 975 Index: F (Linux in a Nutshell)......Page 978 Index: G (Linux in a Nutshell)......Page 985 Index: H (Linux in a Nutshell)......Page 988 Index: I (Linux in a Nutshell)......Page 990 Index: J (Linux in a Nutshell)......Page 993 Index: K (Linux in a Nutshell)......Page 994 Index: L (Linux in a Nutshell)......Page 997 Index: M (Linux in a Nutshell)......Page 1001 Index: N (Linux in a Nutshell)......Page 1005 Index: O (Linux in a Nutshell)......Page 1007 Index: P (Linux in a Nutshell)......Page 1009 Index: Q (Linux in a Nutshell)......Page 1013 Index: R (Linux in a Nutshell)......Page 1014 Index: S (Linux in a Nutshell)......Page 1018 Index: T (Linux in a Nutshell)......Page 1025 Index: U (Linux in a Nutshell)......Page 1029 Index: V (Linux in a Nutshell)......Page 1032 Index: W (Linux in a Nutshell)......Page 1034 Index: X (Linux in a Nutshell)......Page 1037 Index: Y (Linux in a Nutshell)......Page 1038 Index: Z (Linux in a Nutshell)......Page 1039 Colophon (Linux in a Nutshell, 3rd Edition)......Page 1040 Linux in a Nutshell, third Edition 1 TOC 1 Copyright 2 Preface 3 Conventions 7 We'd Like to Hear from You 9 Acknowledgments 10 1. Introduction 11 1.2. Distribution and Support 14 1.3. Commands on Linux 15 1.4. What This Book Offers 16 1.5. Sources and Licenses 19 1.6. Beginner's Guide 21 2. System and Network Administration Overview 28 Overview of Networking (Linux in a Nutshell, 3rd Edition) 38 Overview of TCP/IP (Linux in a Nutshell, 3rd Edition) 41 Overview of Firewalls and Masquerading (Linux in a Nutshell, 3rd Edition) 48 Overview of NFS (Linux in a Nutshell, 3rd Edition) 51 Overview of NIS (Linux in a Nutshell, 3rd Edition) 53 Administering NIS (Linux in a Nutshell, 3rd Edition) 55 RPC and XDR (Linux in a Nutshell, 3rd Edition) 57 3. Linux Commands (Linux in a Nutshell, 3rd Edition) 58 4. Boot Methods (Linux in a Nutshell, 3rd Edition) 409 LILO: The Linux Loader (Linux in a Nutshell, 3rd Edition) 412 Loadlin: Booting from MS-DOS (Linux in a Nutshell, 3rd Edition) 422 Dual Booting Linux and Windows NT/2000 (Linux in a Nutshell, 3rd Edition) 425 4.5 Boot-time Kernel Options 428 initrd: Using a RAM Disk (Linux in a Nutshell, 3rd Edition) 431 5. Red Hat and Debian Package Managers (Linux in a Nutshell, 3rd Edition) 432 The Debian Package Manager (Linux in a Nutshell, 3rd Edition) 446 6. The Linux Shells: An Overview (Linux in a Nutshell, 3rd Edition) 462 Shell Flavors (Linux in a Nutshell, 3rd Edition) 464 Common Features (Linux in a Nutshell, 3rd Edition) 466 Differing Features (Linux in a Nutshell, 3rd Edition) 468 7. bash: The Bourne-Again Shell (Linux in a Nutshell, 3rd Edition) 470 Invoking the Shell (Linux in a Nutshell, 3rd Edition) 472 Syntax (Linux in a Nutshell, 3rd Edition) 475 Variables (Linux in a Nutshell, 3rd Edition) 484 Arithmetic Expressions (Linux in a Nutshell, 3rd Edition) 491 Command History (Linux in a Nutshell, 3rd Edition) 493 Built-in Commands (Linux in a Nutshell, 3rd Edition) 496 Job Control (Linux in a Nutshell, 3rd Edition) 550 8. csh and tcsh (Linux in a Nutshell, 3rd Edition) 552 Invoking the Shell (Linux in a Nutshell, 3rd Edition) 555 Syntax (Linux in a Nutshell, 3rd Edition) 557 Variables (Linux in a Nutshell, 3rd Edition) 561 Expressions (Linux in a Nutshell, 3rd Edition) 579 Command History (Linux in a Nutshell, 3rd Edition) 584 Command-Line Manipulation (Linux in a Nutshell, 3rd Edition) 590 Job Control (Linux in a Nutshell, 3rd Edition) 596 Built-in csh and tcsh Commands (Linux in a Nutshell, 3rd Edition) 598 9. Pattern Matching (Linux in a Nutshell, 3rd Edition) 638 Metacharacters, Listed by Linux Program (Linux in a Nutshell, 3rd Edition) 640 Metacharacters (Linux in a Nutshell, 3rd Edition) 642 Examples of Searching (Linux in a Nutshell, 3rd Edition) 645 10. The Emacs Editor (Linux in a Nutshell, 3rd Edition) 648 Typical Problems (Linux in a Nutshell, 3rd Edition) 650 Summary of Commands by Group (Linux in a Nutshell, 3rd Edition) 653 Summary of Commands by Key (Linux in a Nutshell, 3rd Edition) 662 Summary of Commands by Name (Linux in a Nutshell, 3rd Edition) 668 11. The vi Editor (Linux in a Nutshell, 3rd Edition) 676 vi Command-Line Options (Linux in a Nutshell, 3rd Edition) 682 ex Command-Line Options (Linux in a Nutshell, 3rd Edition) 684 Movement Commands (Linux in a Nutshell, 3rd Edition) 687 Edit Commands (Linux in a Nutshell, 3rd Edition) 691 Saving and Exiting (Linux in a Nutshell, 3rd Edition) 694 Accessing Multiple Files (Linux in a Nutshell, 3rd Edition) 696 Interacting with the Shell (Linux in a Nutshell, 3rd Edition) 697 Macros (Linux in a Nutshell, 3rd Edition) 698 Miscellaneous Commands (Linux in a Nutshell, 3rd Edition) 700 Alphabetical List of Keys in Command Mode (Linux in a Nutshell, 3rd Edition) 701 Syntax of ex Commands (Linux in a Nutshell, 3rd Edition) 705 Alphabetical Summary of ex Commands (Linux in a Nutshell, 3rd Edition) 708 vi Configuration (Linux in a Nutshell, 3rd Edition) 727 12. The sed Editor (Linux in a Nutshell, 3rd Edition) 732 Command-Line Syntax (Linux in a Nutshell, 3rd Edition) 734 Syntax of sed Commands (Linux in a Nutshell, 3rd Edition) 736 Group Summary of sed Commands (Linux in a Nutshell, 3rd Edition) 738 Alphabetical Summary of sed Commands (Linux in a Nutshell, 3rd Edition) 741 13. The gawk Scripting Language (Linux in a Nutshell, 3rd Edition) 749 Command-Line Syntax (Linux in a Nutshell, 3rd Edition) 751 Patterns and Procedures (Linux in a Nutshell, 3rd Edition) 754 gawk System Variables (Linux in a Nutshell, 3rd Edition) 757 Operators (Linux in a Nutshell, 3rd Edition) 759 Variable and Array Assignments (Linux in a Nutshell, 3rd Edition) 761 Group Listing of gawk Commands (Linux in a Nutshell, 3rd Edition) 763 Alphabetical Summary of Commands (Linux in a Nutshell, 3rd Edition) 764 14. CVS and RCS (Linux in a Nutshell, 3rd Edition) 771 The CVS Utility (Linux in a Nutshell, 3rd Edition) 775 CVS Administrator Reference (Linux in a Nutshell, 3rd Edition) 777 CVS User Reference (Linux in a Nutshell, 3rd Edition) 795 The RCS Utility (Linux in a Nutshell, 3rd Edition) 829 Overview of RCS Commands (Linux in a Nutshell, 3rd Edition) 830 Basic RCS Operations (Linux in a Nutshell, 3rd Edition) 832 General RCS Specifications (Linux in a Nutshell, 3rd Edition) 834 Alphabetical Summary of RCS Commands (Linux in a Nutshell, 3rd Edition) 839 15. GNOME (Linux in a Nutshell, 3rd Edition) 858 The Panel (Linux in a Nutshell, 3rd Edition) 862 The Main Menu (Linux in a Nutshell, 3rd Edition) 865 The GNOME Control Center (Linux in a Nutshell, 3rd Edition) 869 16. KDE (Linux in a Nutshell, 3rd Edition) 888 The Panel and Taskbar (Linux in a Nutshell, 3rd Edition) 897 The KDE Control Center (Linux in a Nutshell, 3rd Edition) 899 17. An Alternative Window Manager: fvwm2 (Linux in a Nutshell, 3rd Edition) 918 Configuration Files (Linux in a Nutshell, 3rd Edition) 921 A Modular Approach (Linux in a Nutshell, 3rd Edition) 923 How to Implement Window Manager Customizations (Linux in a Nutshell, 3rd Edition) 924 A Quick Tour of the fvwm Environment (Linux in a Nutshell, 3rd Edition) 925 Specifying Click-to-Type Focus (Linux in a Nutshell, 3rd Edition) 928 Raising the Focus Window Automatically (Linux in a Nutshell, 3rd Edition) 930 Changing the Size of the Desktop (Linux in a Nutshell, 3rd Edition) 931 Having Multiple Desktops (Linux in a Nutshell, 3rd Edition) 933 Making the Same Window Appear on Every Page (Linux in a Nutshell, 3rd Edition) 935 Starting Windows on Different Desktops and Pages (Linux in a Nutshell, 3rd Edition) 937 17.12. If It's Too Hard (or Easy) to Move the Pointer Between Pages 940 Adding Keyboard Shortcuts (Linux in a Nutshell, 3rd Edition) 943 Customizing Menus (Linux in a Nutshell, 3rd Edition) 949 The FvwmWinList: Switching the Focus (Linux in a Nutshell, 3rd Edition) 951 Index: Linux in a Nutshell (Linux in a Nutshell) 954 Index: 0 (Linux in a Nutshell) 955 Index: A (Linux in a Nutshell) 957 Index: B (Linux in a Nutshell) 960 Index: C (Linux in a Nutshell) 963 Index: D (Linux in a Nutshell) 971 Index: E (Linux in a Nutshell) 975 Index: F (Linux in a Nutshell) 978 Index: G (Linux in a Nutshell) 985 Index: H (Linux in a Nutshell) 988 Index: I (Linux in a Nutshell) 990 Index: J (Linux in a Nutshell) 993 Index: K (Linux in a Nutshell) 994 Index: L (Linux in a Nutshell) 997 Index: M (Linux in a Nutshell) 1001 Index: N (Linux in a Nutshell) 1005 Index: O (Linux in a Nutshell) 1007 Index: P (Linux in a Nutshell) 1009 Index: Q (Linux in a Nutshell) 1013 Index: R (Linux in a Nutshell) 1014 Index: S (Linux in a Nutshell) 1018 Index: T (Linux in a Nutshell) 1025 Index: U (Linux in a Nutshell) 1029 Index: V (Linux in a Nutshell) 1032 Index: W (Linux in a Nutshell) 1034 Index: X (Linux in a Nutshell) 1037 Index: Y (Linux in a Nutshell) 1038 Index: Z (Linux in a Nutshell) 1039 Colophon (Linux in a Nutshell, 3rd Edition) 1040
Linux in a Nutshell covers the core commands available on common Linux distributions. This isn't a scaled-down quick reference of common commands, but a complete reference to all user, programming, administration, and networking commands with complete lists of options.
Contents also include:
- LILO and Loadlin (boot) options
- Shell syntax and variables for the bash, csh, and tcsh shells
- Pattern matching
- Emacs and vi editing commands
- sed and gawk commands
- Common configuration tasks for the GNOME and KDE desktops and the fvwm2 window manager
New material in the third edition includes common configuration tasks for the GNOME and KDE desktops and the fvwm2 window manager, the dpkg Debian package manager, an expanded investigation of the rpm Red Hat package manager and CVS, and many new commands.
Linux in a Nutshell is a must for any Linux user; it weighs less than a stack of manual pages, but delivers everything needed for common, day-to-day use. It also covers a wide range of GNU tools for Unix users who have GNU versions of standard Unix tools.
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.
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 Printing History January 1997 First Edition. February 1999 Second Edition. August 2000 Third Edition. This revised edition is a complete reference to the core commands available on common Linux distributions, containing all user, programming, administration, and networking commands with options. Includes common techniques for customizing the X Window System and the GNOME and KDE desktops, the Debian package manager and more.