Twice the recipes and double the size! Printed copies of the new expanded, revised edition of The Linux Cookbook are now available at 34% off!

Preview the old edition:

|
Preface
Format of RecipesAssumptions, Scope, and ExclusionsTypographical ConventionsVersions, Latest Edition, and ErrataAcknowledgments
PART ONE: Working with LinuxIntroduction
Background and History
What's Unix?What's Free Software?What's Open Source?What's Linux?What's Debian?Unix and the Tools Philosophy
What to Try FirstIf You Need More Help
What Every Linux User Knows
Controlling Power to the System
Powering Up the SystemTurning Off the System
Accounts and Privileges
Logging In to the SystemLogging Out of the System
Console Basics
Switching between ConsolesScrolling the Console TextKeys for Console Manipulation
Running a CommandChanging Your PasswordListing User Activity
Listing Your UsernameListing Who Is on the SystemListing Who Is on and What They're DoingListing the Last Times a User Logged In
Listing System Activity
Listing Your Current ProcessesListing All of a User's ProcessesListing All Processes on the SystemListing Processes by Name or Number
Help Facilities
Finding the Right Tool for the JobListing a Description of a ProgramListing the Usage of a ToolReading a Page from the System ManualUsing the GNU Info SystemReading System Documentation and Help Files
The Shell
Keys for Command Line Editing
Passing Special Characters to CommandsLetting the Shell Complete What You TypeRepeating the Last Command You TypedRunning a List of Commands
Redirecting Input and Output
Redirecting Input to a FileRedirecting Output to a FileRedirecting Error Messages to a FileRedirecting Output to Another Command's Input
Managing Jobs
Suspending a JobPutting a Job in the BackgroundPutting a Job in the ForegroundListing Your JobsStopping a Job
Command History
Viewing Your Command HistorySpecifying a Command from Your History
Recording a Shell SessionCustomizing Your Shell
Changing the Shell PromptMaking a Command AliasAdding to Your PathCustomizing Future Shells
The X Window System
Running X
Starting XStopping X
Running a Program in X
Specifying Window Size and LocationSpecifying Window ColorsSpecifying Window FontSpecifying Additional Window Attributes
Manipulating X Client Windows
Moving a WindowResizing a WindowDestroying a WindowMinimizing a WindowMaximizing a Window
Moving around the DesktopRunning a Shell in XConfiguring X
Switching between Video ModesRunning X Clients AutomaticallyChanging the Root Window ParametersChoosing a Window Manager
PART TWO: FilesFiles and Directories
Naming Files and Directories
Making an Empty FileMaking a DirectoryMaking a Directory Tree
Changing Directories
Changing to Your Home DirectoryChanging to the Last Directory You VisitedGetting the Name of the Current Directory
Listing Directories
Listing File AttributesListing Directories RecursivelyListing Newest Files FirstListing Hidden FilesListing Directories in ColorListing Directory Tree GraphsAdditional Directory Listing Options
Copying Files and DirectoriesMoving Files and Directories
Changing File Names to LowercaseRenaming Multiple Files with the Same Extension
Removing Files and Directories
Removing a File with a Strange NameA Safe Way to Remove a File
Giving a File More than One NameSpecifying File Names with PatternsBrowsing Files
Sharing Files
Groups and How to Work in Them
Listing the Groups a User Belongs ToListing the Members of a Group
File Ownership
Determining the Ownership of a FileChanging the Ownership of a File
Controlling Access to Files
Listing the Permissions of a FileChanging the Permissions of a FileWrite-Protecting a FileMaking a File PrivateMaking a File PublicMaking a File Executable
Finding Files
Finding All Files That Match a PatternFinding Files in a Directory Tree
Finding Files in a Directory Tree by NameFinding Files in a Directory Tree by SizeFinding Files in a Directory Tree by Modification TimeFinding Files in a Directory Tree by OwnerRunning Commands on the Files You FindFinding Files by Multiple Criteria
Finding Files in Directory Listings
Finding the Largest Files in a DirectoryFinding the Smallest Files in a DirectoryFinding the Smallest DirectoriesFinding the Largest DirectoriesFinding the Number of Files in a Listing
Finding Where a Command Is Located
Managing Files
Determining File Type and FormatChanging File Modification TimeSplitting a File into Smaller OnesComparing Files
Determining Whether Two Files DifferFinding the Differences between FilesPatching a File with a Difference Report
Compressed Files
Compressing a FileDecompressing a File
File Archives
Creating a File ArchiveListing the Contents of an ArchiveExtracting Files from an Archive
Tracking Revisions to a File
Checking In a File RevisionChecking Out a File RevisionViewing a File's Revision Log
PART THREE: TextViewing Text
Perusing Text
Perusing a Text FilePerusing Multiple Text FilesCommands Available While Perusing Text
Outputting Text
Showing Non-printing CharactersOutputting a Beginning Part of a TextOutputting an Ending Part of a TextOutputting a Middle Part of a TextOutputting the Text between StringsOutputting Text in a Dialect
Streaming TextViewing a Character Chart
Text Editing
Choosing the Perfect Text EditorEmacs
Getting Acquainted with EmacsBasic Emacs Editing KeysMaking Abbreviations in EmacsRecording and Running Macros in EmacsInserting Special Characters in Emacs
Running a Vi TutorialSelecting Text
Cutting TextPasting Text
Editing Streams of TextConcatenating Text
Writing Text to FilesAppending Text to a FileInserting Text at the Beginning of a File
Including Text Files
Grammar and Reference
Spelling
Finding the Correct Spelling of a WordListing the Misspellings in a TextKeeping a Spelling Word ListInteractive Spell CheckingSpell Checking in Emacs
Dictionaries
Listing Words that Match a PatternListing the Definitions of a WordListing the Synonyms of a WordListing the Antonyms of a WordListing the Hypernyms of a WordOnline Dictionaries
Checking Grammar
Checking Text for Misused PhrasesChecking Text for Doubled WordsChecking Text for ReadabilityChecking Text for Difficult SentencesChecking Text for Long Sentences
Word Lists and Reference Files
Analyzing Text
Counting Text
Counting the Characters in a TextCounting the Words in a TextCounting the Lines in a TextCounting the Occurrences of SomethingCounting Lines per Page in Emacs
Making a Concordance of a TextText Relevance
Sorting Text in Order of RelevanceListing Relevant Files in Emacs
Finding Anagrams in TextFinding Palindromes in TextText Cut-Ups
Making Simple Text Cut-UpsMaking Random Word Cut-UpsMaking Cut-Ups in Emacs
Formatting Text
Spacing Text
Eliminating Extra Spaces in TextSingle-Spacing TextDouble-Spacing TextTriple-Spacing TextAdding Line Breaks to TextAdding Margins to TextSwapping Tab and Space Characters
Paginating Text
Placing Headers on Each PagePlacing Text in ColumnsOptions Available When Paginating Text
Underlining TextSorting TextNumbering Lines of TextReversing Text
Searching Text
Searching for a Word or PhraseRegular Expressions -- Matching Text Patterns
Matching Lines Beginning with Certain TextMatching Lines Ending with Certain TextMatching Lines of a Certain LengthMatching Lines That Contain Any of Some RegexpsMatching Lines That Contain All of Some RegexpsMatching Lines That Don't Contain a RegexpMatching Lines That Only Contain Certain CharactersFinding Phrases Regardless of SpacingFinding Patterns in Certain ContextsUsing a List of Regexps to Match FromRegexps for Common Situations
Searching More than Plain Text Files
Matching Lines in Compressed FilesMatching Lines in Web Pages
Outputting the Context of a SearchSearching and Replacing TextSearching Text in Emacs
Searching Incrementally in EmacsSearching for a Phrase in EmacsSearching for a Regexp in EmacsSearching and Replacing in Emacs
Searching Text in Less
Typesetting and Word Processing
Choosing the Right Typesetting System for the JobConverting Plain Text for Output
Outputting Text in a FontOutputting Text as a Poster or SignOutputting Text with Language HighlightingOutputting Text with Fancy HeadersOutputting Text in Landscape OrientationOutputting Multiple Copies of TextSelecting the Pages of Text to OutputAdditional PostScript Output Options
LyX Document Processing
Features of LyXWriting Documents with LyXLearning More about LyX
Typesetting with TeX and Friends
Is It a TeX or LaTeX File?Processing TeX FilesProcessing LaTeX FilesWriting Documents with TeX and LaTeXTeX and LaTeX Document Templates
Writing Documents with SGMLtools
Elements of an SGML DocumentChecking SGML Document SyntaxGenerating Output from SGML
Other Word Processors and Typesetting Systems
Fonts
X Fonts
Selecting an X Font NameListing Available X FontsDisplaying the Characters in an X FontResizing the Xterm Font
Console Fonts
Setting the Console FontDisplaying the Characters in a Console Font
Text Fonts
Horizontal Text FontsMaking a Text Banner
Other Font Tools
PART FOUR: ImagesViewing Images
Previewing Print Files
Previewing a DVI FilePreviewing a PostScript FilePreviewing a PDF File
Viewing an Image in X
Browsing Image Collections in XPutting an Image in the Root Window
Browsing Images in a ConsoleViewing an Image in a Web BrowserBrowsing PhotoCD ArchivesAdditional Image Viewers
Editing Images
Transforming Images
Changing the Size of an ImageRotating an ImageAdjusting the Colors of an ImageAnnotating an ImageAdding Borders to an ImageMaking an Image MontageCombining ImagesMorphing Two Images Together
Converting Images between FormatsEditing Images with the GIMPInteractive Image Editors and Tools
Importing Images
Taking Screen Shots
Taking a Screen Shot in XTaking a Screen Shot in a Console
Scanning Images
Listing Available Scanner DevicesTesting a ScannerScanning an Image
Extracting PhotoCD Images
Converting a PhotoCD ImageRemoving PhotoCD Haze
PostScript
Manipulating PostScript Pages
Extracting DVI Pages to PostScriptExtracting Pages from a PostScript FileCombining PostScript PagesArranging PostScript Pages in Signatures
Manipulating PostScript Documents
Resizing a PostScript DocumentCombining PostScript DocumentsArranging a PostScript Document in a Booklet
Converting PostScript
Converting PostScript to PDFConverting PostScript to Plain Text
PART FIVE: SoundSound Files
Sound File FormatsAdjusting the Audio Controls
Listing the Current Audio SettingsChanging the Volume LevelMuting an Audio DeviceSelecting an Audio Recording Source
Playing a Sound File
Playing an MP3 FilePlaying a MIDI File
Recording a Sound FileOther Sound File Tools
Audio Compact Discs
Controlling CD Audio
Playing an Audio CDPausing an Audio CDStopping an Audio CDShuffling Audio CD TracksDisplaying Information about an Audio CDEjecting an Audio CD
Sampling Sound from a CDWriting an Audio CD-ROther Audio CD Applications
Editing Sound Files
Working with Selections from Sound Files
Cutting Out Part of a Sound FilePasting a Selection of SoundMixing Sound Files Together
Sound Effects
Changing the Amplitude of a Sound FileChanging the Sampling Rate of a Sound FileAdding Reverb to a Sound FileAdding Echo to a Sound FileAdding Flange to a Sound FileAdding Phase to a Sound FileAdding Chorus to a Sound FileAdding Vibro-Champ Effects to a Sound FileReversing a Sound File
Converting Sound Files
Making an MP3 FileConverting MP3 to Another Format
Other Tools for Sound Editing
PART SIX: ProductivityDisk Storage
Listing a Disk's Free SpaceListing a File's Disk UsageFloppy Disks
Formatting a Floppy DiskMounting a Floppy DiskUnmounting a Floppy Disk
CD-ROMs
Mounting a CD-ROMUnmounting a CD-ROM
Printing
Making and Managing Print Jobs
Sending a Print Job to the PrinterPrinting Multiple Copies of a JobListing Your Print JobsCancelling a Print Job
More Recipes for Printing
Printing in EmacsPrinting with DvipsPrinting the Contents of an Xterm Window
Preparing Files for Printing
Preparing a PostScript File for PrintingPreparing a DVI File for PrintingPreparing a PDF File for PrintingPreparing a Man Page for Printing
Cross-Platform Conversions
Using DOS and Windows Disks
Listing the Contents of a DOS DiskCopying Files to and from a DOS DiskDeleting Files on a DOS DiskFormatting a DOS Disk
Using Macintosh Disks
Specifying the Macintosh Disk to UseListing the Contents of a Macintosh DiskCopying Files to and from a Macintosh DiskDeleting Files on a Macintosh DiskFormatting a Macintosh Disk
Converting Text Files between DOS and LinuxConverting Microsoft Word Files
Converting Word to LaTeXConverting Word to Plain Text
Reminders
Displaying the Date and TimePlaying an Audible Time AnnouncementCalendars
Displaying a CalendarDisplaying a Calendar in Emacs
Managing Appointments
Making an Appointment FileIncluding Holidays in Your RemindersAutomatic Appointment Delivery
Contact Managers
Keeping a Free-Form Address ListKeeping a Contact Manager Database
Reminding Yourself of Things
Sending Yourself Email RemindersReminding Yourself When You Have to LeaveRunning a Command on a Delay
Mathematics
Calculating Arithmetic
Making a Quick Arithmetic CalculationMaking Many Arithmetic Calculations
Outputting a Random NumberListing a Sequence of NumbersFinding Prime FactorsConverting Numbers
Converting an Amount between Units of MeasurementConverting an Arabic Numeral to English
Other Math Tools
PART SEVEN: NetworkingCommunications
Connecting to the Internet
Setting Up PPPControlling a PPP Connection
Faxing
Sending a FaxReceiving a FaxReceiving Faxes AutomaticallyConverting to and from Fax Format
Calling Out on a Modem
Email
Sending Mail
Mailing a User on the Same SystemMailing a File or the Output of a CommandMailing the Contents of a URLSpecial Mail Composition Keystrokes
Receiving Mail
Deleting MailOptions Available while Reading Mail
Managing Mail
Viewing a Mail FolderSetting Notification for New MailCounting How Many Messages You HaveSeeing Who Your Mail Is FromVerifying an Email Address
Mail Attachments
Reading a Mail AttachmentSending a Mail Attachment
Making an Email SignaturePicking the Right Mail Application
The World Wide Web
Browsing the Web
Maintaining a List of Visited Web SitesOpening a URL from a ScriptMozilla Browsing Tips
Viewing an Image from the WebReading Text from the Web
Perusing Text from the WebViewing a Site That Requires AuthorizationOptions Available while Browsing Text
Browsing the Web in EmacsGetting Files from the Web
Saving a URL to a FileArchiving an Entire Web SiteArchiving Part of a Web SiteReading the Headers of a Web Page
Writing HTML
Adding Parameters to Image TagsConverting HTML to Another FormatValidating an HTML File
More Web Browsers and Tools
Other Internet Services
Connecting to Another System
Suspending a Connection with Another SystemConnecting to Another System with Encryption
Transferring Files with Another System
Uploading a FileDownloading a File
Reading Usenet
Choosing a NewsreaderFinding Newsgroups for a Topic
Listing Online System and User Activity
Checking Whether a System Is OnlineChecking Whether a User Is OnlineListing Who Is Logged In to a SystemFinding the IP Address of a Host NameFinding the Host Name of an IP AddressListing the Owner of a Domain Name
Sending a Message to Another User's TerminalChatting with Other Users
Chatting Directly with a UserChatting with Users on IRCChatting with Users on ICQ
Administrative Issues
Linux and Hardware CompatibilityShutting Down the System
Shutting Down ImmediatelyShutting Down at a Certain TimeCancelling a Shutdown
Installing Software
Getting and Installing DebianInstalling a Debian PackageUpgrading a Debian PackageInstalling a Shell Script
Administrating Users
Making a User AccountLetting Users Access Hardware PeripheralsLetting Users Mount Drives
Displaying Information about the System
How Long Has the System Been Up?What Version of Linux Am I Running?What Version of Debian Am I Running?
Linux Resources on the WebLicense
Design Science LicenseApplying Copyleft to Your Work
Program Index

Concept Index

Copyright 2001 Michael Stutz All rights reserved