Linux Phrasebook (2nd Edition) (Developer's Library)
<p style="margin:0px;"> </p> <p style="margin:0px;">Get more done faster at the Linux command line! This best-selling <b>Linux Phrasebook</b> has been thoroughly updated in the second edition to reflect the newest distributions, incorporate feedback from hundreds of active Linux users, and cover today's newest tools and techniques -- including an entirely new chapter on text file manipulation. </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Linux Phrasebook, Second</b> <b>Edition </b>offers a concise, handy reference to the Linux commands that, like a language phrasebook, can be used on the spot on moment's notice.</p> <p style="margin:0px;"> </p> <p style="margin:0px;"> </p> <p style="margin:0px;">Don't waste a minute on non-essentials: this straight-to-the-point reference delivers specific information and tested commands designed to work with any modern Linux distribution. Portable enough to take anywhere, it starts with a quick introduction to essential command line concepts, and then delivers all the modern Linux command examples, variations, and parameters you need to: </p> <p style="margin:0px;"> </p> <ul> <li>View, manipulate, archive, and compress files</li> <li>Control file ownership and permissions</li> <li>Find anything on your systems</li> <li>Efficiently use the Linux shell</li> <li>Monitor system resources</li> <li>Install software</li> <li>Test, fix, and work with networks</li> </ul> <p style="margin:0px;"> </p> <p style="margin:0px;"> <b>Linux Phrasebook, Second Edition </b>is the perfect quick command line reference for millions of Linux users and administrators at all levels of experience: people who want to get reliable information they can use right now -- with no distractions and no diversions!</p> <p style="margin:0px;"> <br> </p> <p style="margin:0px;"> <b>Contents at a Glance</b> </p> <p style="margin:0px;"> <b> </b> </p> <p style="margin:0px;"> <b>Part I: Getting Started</b> </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Chapter 1</b> Things to Know About Your Command Line</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Everything Is a File</p> <p style="margin:0px;">Maximum Filename Lengths</p> <p style="margin:0px;">Names Are Case-Sensitive</p> <p style="margin:0px;">Special Characters to Avoid in Names</p> <p style="margin:0px;">Wildcards and What They Mean</p> <p style="margin:0px;">Special Files That Affect Your Command Line</p> <p style="margin:0px;">If There’s Too Much Stuff on Screen, Reset</p> </blockquote> <p style="margin:0px;"> <b>Chapter 2</b> Navigating Your File System</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">List Files and Folders</p> <p style="margin:0px;">List the Contents of Other Folders</p> <p style="margin:0px;">List Folder Contents Using Wildcards</p> <p style="margin:0px;">View a List of Files in Subfolders</p> <p style="margin:0px;">View a List of Contents in a Single Column</p> <p style="margin:0px;">View Contents As a Comma-Separated List</p> <p style="margin:0px;">View Hidden Files and Folders</p> <p style="margin:0px;">Visually Display a File’s Type</p> <p style="margin:0px;">Display Contents in Color</p> <p style="margin:0px;">List Permissions, Ownership, and More</p> <p style="margin:0px;">Reverse the Order Contents Are Listed</p> <p style="margin:0px;">Sort Contents by Date and Time</p> <p style="margin:0px;">Sort Contents by Size</p> <p style="margin:0px;">Express File Sizes in Terms of K, M, and G</p> <p style="margin:0px;">Display the Path of Your Current Directory</p> <p style="margin:0px;">Change to a Different Directory</p> <p style="margin:0px;">Change to Your Home Directory</p> <p style="margin:0px;">Change to Your Previous Directory</p> </blockquote> <p style="margin:0px;"> <b>Chapter 3</b> Creation and Destruction</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Change a File to the Current Time</p> <p style="margin:0px;">Change a File to Any Desired Time</p> <p style="margin:0px;">Create a New, Empty File</p> <p style="margin:0px;">Create a New Directory</p> <p style="margin:0px;">Create a New Directory and Any Necessary Subdirectories</p> <p style="margin:0px;">Copy Files</p> <p style="margin:0px;">Copy Files Using Wildcards</p> <p style="margin:0px;">Copy Files Verbosely</p> <p style="margin:0px;">Stop Yourself from Copying over Important Files</p> <p style="margin:0px;">Copy Directories</p> <p style="margin:0px;">Copy Files As Perfect Backups in Another Directory</p> <p style="margin:0px;">Move Files and Folders</p> <p style="margin:0px;">Rename Files and Folders</p> <p style="margin:0px;">Understand How Linux Stores Files</p> <p style="margin:0px;">Create a Link Pointing to Another File or Directory</p> <p style="margin:0px;">Delete Files</p> <p style="margin:0px;">Remove Several Files at Once with Wildcards</p> <p style="margin:0px;">Prevent Yourself from Deleting Key Files</p> <p style="margin:0px;">Delete an Empty Directory</p> <p style="margin:0px;">Remove Files and Directories That Aren’t Empty</p> <p style="margin:0px;">Deleting Troublesome Files</p> </blockquote> <p style="margin:0px;"> <b>Chapter 4</b> Learning About Commands</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Find Out About Commands with man</p> <p style="margin:0px;">Quickly Find Out What a Command Does Based on Its Name</p> <p style="margin:0px;">Search for a Command Based on What It Does</p> <p style="margin:0px;">Read a Command’s Specific Man Page</p> <p style="margin:0px;">Learn About Commands with info</p> <p style="margin:0px;">Navigate Within info</p> <p style="margin:0px;">Locate the Paths for a Command’s Executable, Source Files, and Man Pages</p> <p style="margin:0px;">Find Out Which Version of a Command Will Run</p> <p style="margin:0px;">Discover How a Command Will Be Interpreted</p> </blockquote> <p style="margin:0px;"> <b>Chapter 5</b> Building Blocks</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Run Several Commands Sequentially</p> <p style="margin:0px;">Run Commands Only If the Previous Ones Succeed</p> <p style="margin:0px;">Run a Command Only If the Previous One Fails</p> <p style="margin:0px;">Plug the Output of a Command into Another Command</p> <p style="margin:0px;">Understand Input/Output Streams</p> <p style="margin:0px;">Use the Output of One Command As Input for Another</p> <p style="margin:0px;">Redirect a Command’s Output to a File</p> <p style="margin:0px;">Prevent Overwriting Files When Using Redirection</p> <p style="margin:0px;">Append a Command’s Output to a File</p> <p style="margin:0px;">Use a File As Input for a Command</p> <p style="margin:0px;">Combine Input and Output Redirection</p> <p style="margin:0px;">Send Output to a File and to stdout at the Same Time</p> </blockquote> <p style="margin:0px;"> <b>Part II: Working with Files</b> </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Chapter 6</b> Viewing (Mostly Text) Files</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Figure Out a File’s Type</p> <p style="margin:0px;">View Files on stdout</p> <p style="margin:0px;">Concatenate Files to stdout</p> <p style="margin:0px;">Concatenate Files to Another File</p> <p style="margin:0px;">Concatenate Files and Number the Lines</p> <p style="margin:0px;">View Text Files a Screen at a Time</p> <p style="margin:0px;">Search Within Your Pager</p> <p style="margin:0px;">Edit Files Viewed with a Pager</p> <p style="margin:0px;">View the First 10 Lines of a File</p> <p style="margin:0px;">View the First 10 Lines of Several Files</p> <p style="margin:0px;">View the First Several Lines of a File or Files</p> <p style="margin:0px;">View the First Several Bytes, Kilobytes, or Megabytes of a File</p> <p style="margin:0px;">View the Last 10 Lines of a File</p> <p style="margin:0px;">View the Last 10 Lines of Several Files</p> <p style="margin:0px;">View the Last Several Lines of a File or Files</p> <p style="margin:0px;">View the Constantly Updated Last Lines of a File or Files</p> </blockquote> <p style="margin:0px;"> <b>Chapter 7</b> Manipulating Text Files with Filters</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Count the Number of Words, Lines, and Characters in a File</p> <p style="margin:0px;">Number Lines in a File</p> <p style="margin:0px;">Select an Entire Column of Data in a Delimited File</p> <p style="margin:0px;">Sort the Contents of a File</p> <p style="margin:0px;">Sort the Contents of a File Numerically</p> <p style="margin:0px;">Remove Duplicate Lines in a File</p> <p style="margin:0px;">Substitute Selected Characters with Others</p> <p style="margin:0px;">Replace Repeated Characters with a Single Instance</p> <p style="margin:0px;">Delete Matching Characters</p> <p style="margin:0px;">Transform Text in a File</p> <p style="margin:0px;">Print Specific Fields in a File</p> </blockquote> <p style="margin:0px;"> <b>Chapter 8</b> Ownerships and Permissions</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Become Another User</p> <p style="margin:0px;">Become Another User, with His Environment Variables</p> <p style="margin:0px;">Become root</p> <p style="margin:0px;">Become root, with Its Environment Variables</p> <p style="margin:0px;">Change the Group Owning Files and Directories</p> <p style="margin:0px;">Recursively Change the Group Owning a Directory</p> <p style="margin:0px;">Change the Owner of Files and Directories</p> <p style="margin:0px;">Change the Owner and Group of Files and Directories</p> <p style="margin:0px;">Understand the Basics of Permissions</p> <p style="margin:0px;">Change Permissions on Files and Directories Using Alphabetic Notation</p> <p style="margin:0px;">Change Permissions on Files and Directories Using Numeric Permissions</p> <p style="margin:0px;">Change Permissions Recursively</p> <p style="margin:0px;">Set and Then Clear suid</p> <p style="margin:0px;">Set and Then Clear sgid</p> <p style="margin:0px;">Set and Then Clear the Sticky Bit</p> </blockquote> <p style="margin:0px;"> <b>Chapter 9</b> Archiving and Compression</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Archive and Compress Files Using zip</p> <p style="margin:0px;">Get the Best Compression Possible with zip</p> <p style="margin:0px;">Archive and Compress Files of a Specified Type in Directories and Subdirectories</p> <p style="margin:0px;">Password-Protect Compressed Zip Archives</p> <p style="margin:0px;">Unzip Files</p> <p style="margin:0px;">Test Files That Will Be Unzipped</p> <p style="margin:0px;">Archive and Compress Files Using gzip</p> <p style="margin:0px;">Archive and Compress Files Recursively Using gzip</p> <p style="margin:0px;">Uncompress Files Compressed with gzip</p> <p style="margin:0px;">Test Files That Will Be Unzipped with gunzip</p> <p style="margin:0px;">Archive and Compress Files Using bzip2</p> <p style="margin:0px;">Uncompress Files Compressed with bzip2</p> <p style="margin:0px;">Test Files That Will Be Unzipped with bunzip2</p> <p style="margin:0px;">Archive Files with tar</p> <p style="margin:0px;">Archive and Compress Files with tar and gzip</p> <p style="margin:0px;">Test Files That Will Be Untarred and Uncompressed</p> <p style="margin:0px;">Untar and Uncompress Files</p> </blockquote> <p style="margin:0px;"> <b>Part III: Finding Files, Words, and More</b> </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Chapter 10</b> Finding Files, Directories, Words, and Phrases</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Search a Database of Filenames</p> <p style="margin:0px;">Search a Database of Filenames Without Worrying About Case</p> <p style="margin:0px;">Update the Database Used by locate</p> <p style="margin:0px;">Searching Inside Text Files for Patterns</p> <p style="margin:0px;">The Basics of Searching Inside Text Files for Patterns</p> <p style="margin:0px;">Search Recursively for Text in Files</p> <p style="margin:0px;">Search for Words and Highlight the Results</p> <p style="margin:0px;">Search for Text in Files, Ignoring Case</p> <p style="margin:0px;">Search for Whole Words in Files</p> <p style="margin:0px;">Show Line Numbers Where Words Appear in Files</p> <p style="margin:0px;">Search the Output of Other Commands for Specific Words</p> <p style="margin:0px;">See Context for Words Appearing in Files</p> <p style="margin:0px;">Show Lines Where Words Do Not Appear in Files</p> <p style="margin:0px;">List Files Containing Searched-for Words</p> <p style="margin:0px;">List the Number of Occurrences of Words in Files</p> <p style="margin:0px;">Search for Words Inside Search Results</p> </blockquote> <p style="margin:0px;"> <b>Chapter 11</b> The find Command</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Find Files by Name</p> <p style="margin:0px;">Find Files by Ownership</p> <p style="margin:0px;">Find Files by File Size</p> <p style="margin:0px;">Find Files by File Type</p> <p style="margin:0px;">Find Files by Time</p> <p style="margin:0px;">Show Results If the Expressions Are True (AND)</p> <p style="margin:0px;">Show Results If Either Expression Is True (OR)</p> <p style="margin:0px;">Show Results If the Expression Is Not True (NOT)</p> <p style="margin:0px;">Execute a Command on Found Files</p> <p style="margin:0px;">Execute a Command on Found Files More Efficiently</p> <p style="margin:0px;">Execute a Command on Found Files Containing Spaces</p> </blockquote> <p style="margin:0px;"> <b>Part IV: Your Environment</b> </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Chapter 12</b> Your Shell</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">View Your Command-Line History</p> <p style="margin:0px;">Run the Last Command Again</p> <p style="margin:0px;">Run a Previous Command Using Numbers</p> <p style="margin:0px;">Run a Previous Command Using a String</p> <p style="margin:0px;">Search for a Previous Command and Run It</p> <p style="margin:0px;">Display All Command Aliases</p> <p style="margin:0px;">View a Specific Command Alias</p> <p style="margin:0px;">Create a New Temporary Alias</p> <p style="margin:0px;">Create a New Permanent Alias</p> <p style="margin:0px;">Remove an Alias</p> <p style="margin:0px;">Create a New Temporary Function</p> <p style="margin:0px;">Create a New Permanent Function</p> <p style="margin:0px;">Display All Functions</p> <p style="margin:0px;">Remove a Function</p> <p style="margin:0px;">When to Use an Alias and When to Use a Function</p> <p style="margin:0px;"> </p> </blockquote> <p style="margin:0px;"> <b>Chapter 13</b> Monitoring System Resources</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Discover How Long Your Computer Has Been Running</p> <p style="margin:0px;">View All Currently Running Processes</p> <p style="margin:0px;">View a Process Tree</p> <p style="margin:0px;">View Processes Owned by a Particular User</p> <p style="margin:0px;">End a Running Process</p> <p style="margin:0px;">View a Dynamically Updated List of Running Processes</p> <p style="margin:0px;">List Open Files</p> <p style="margin:0px;">List a User’s Open Files</p> <p style="margin:0px;">List Users for a Particular File</p> <p style="margin:0px;">List Processes for a Particular Program</p> <p style="margin:0px;">Display Information About System RAM</p> <p style="margin:0px;">Show File System Disk Usage</p> <p style="margin:0px;">Report File Space Used by a Directory</p> <p style="margin:0px;">Report Just the Total Space Used for a Directory</p> </blockquote> <p style="margin:0px;"> <b>Chapter 14</b> Installing Software</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Install Software Packages (RPM)</p> <p style="margin:0px;">Remove Software Packages (RPM)</p> <p style="margin:0px;">Install Software Packages and Dependencies (RPM)</p> <p style="margin:0px;">Remove Software Packages and Dependencies (RPM)</p> <p style="margin:0px;">Upgrade Software Packages and Dependencies (RPM)</p> <p style="margin:0px;">Find Packages Available for Download (RPM)</p> <p style="margin:0px;">Install Software Packages (DEB)</p> <p style="margin:0px;">Remove Software Packages (DEB)</p> <p style="margin:0px;">Install Software Packages and Dependencies (DEB)</p> <p style="margin:0px;">Remove Software Packages and Dependencies (DEB)</p> <p style="margin:0px;">Upgrade Software Packages and Dependencies (DEB)</p> <p style="margin:0px;">Find Packages Available for Download (DEB)</p> <p style="margin:0px;">Clean Up Unneeded Installation Packages (DEB)</p> <p style="margin:0px;">Troubleshoot Problems with APT (DEB)</p> </blockquote> <p style="margin:0px;"> <b>Part V: Networking</b> </p> <p style="margin:0px;"> <b> <br> </b> </p> <p style="margin:0px;"> <b>Chapter 15</b> Connectivity</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">View the Status of Your Network Interfaces</p> <p style="margin:0px;">Verify That a Computer Is Running and Accepting Requests</p> <p style="margin:0px;">Trace the Route Packets Take Between Two Hosts</p> <p style="margin:0px;">Query DNS Records</p> <p style="margin:0px;">Configure a Network Interface</p> <p style="margin:0px;">View the Status of Your Wireless Network Interfaces</p> <p style="margin:0px;">Configure a Wireless Network Interface</p> <p style="margin:0px;">Grab a New Address Using DHCP</p> <p style="margin:0px;">Make a Network Connection Active</p> <p style="margin:0px;">Bring a Network Connection Down</p> <p style="margin:0px;">Display Your IP Routing Table</p> <p style="margin:0px;">Change Your IP Routing Table</p> <p style="margin:0px;">Troubleshooting Network Problems</p> </blockquote> <p style="margin:0px;"> <b>Chapter 16</b> Working on the Network</p> <p style="margin:0px;"> </p> <blockquote> <p style="margin:0px;">Securely Log In to Another Compute</p> <p style="margin:0px;">Securely Log In to Another Machine Without a Password</p> <p style="margin:0px;">Securely Transfer Files Between Machines</p> <p style="margin:0px;">Securely Copy Files Between Hosts</p> <p style="margin:0px;">Securely Transfer and Back Up Files</p> <p style="margin:0px;">Download Files Non-interactively</p> <p style="margin:0px;">Download Websites Non-interactively</p> <p style="margin:0px;">Download Sequential Files and Internet Resources</p> <div> <br> </div> </blockquote> <p style="margin:0px;"> </p>