Home > Store

Linux Phrasebook, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Linux Phrasebook, 2nd Edition

Book

  • Your Price: $23.99
  • List Price: $29.99
  • Usually ships in 24 hours.

About

Features

  • The quick, functional, portable, and practical Linux command line reference: straight-to-the-point information that can be used anytime, anywhere
  • The most popular title in the Developer's Library Phrasebook series, now fully updated to reflect new Linux tools, commands, and utilities, and feedback from hundreds of readers
  • Contains an all-new chapter on manipulating text files

Description

  • Copyright 2016
  • Dimensions: 4-1/2" x 7"
  • Pages: 512
  • Edition: 2nd
  • Book
  • ISBN-10: 0-321-83388-0
  • ISBN-13: 978-0-321-83388-4

Get more done faster at the Linux command line! This best-selling Linux Phrasebook 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. 


Linux Phrasebook, Second Edition offers a concise, handy reference to the Linux commands that, like a language phrasebook, can be used on the spot on moment's notice.

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: 

  • View, manipulate, archive, and compress files
  • Control file ownership and permissions
  • Find anything on your systems
  • Efficiently use the Linux shell
  • Monitor system resources
  • Install software
  • Test, fix, and work with networks

Linux Phrasebook, Second Edition 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!


Contents at a Glance

Part I: Getting Started


Chapter 1 Things to Know About Your Command Line

Everything Is a File

Maximum Filename Lengths

Names Are Case-Sensitive

Special Characters to Avoid in Names

Wildcards and What They Mean

Special Files That Affect Your Command Line

If There’s Too Much Stuff on Screen, Reset

Chapter 2 Navigating Your File System

List Files and Folders

List the Contents of Other Folders

List Folder Contents Using Wildcards

View a List of Files in Subfolders

View a List of Contents in a Single Column

View Contents As a Comma-Separated List

View Hidden Files and Folders

Visually Display a File’s Type

Display Contents in Color

List Permissions, Ownership, and More

Reverse the Order Contents Are Listed

Sort Contents by Date and Time

Sort Contents by Size

Express File Sizes in Terms of K, M, and G

Display the Path of Your Current Directory

Change to a Different Directory

Change to Your Home Directory

Change to Your Previous Directory

Chapter 3 Creation and Destruction

Change a File to the Current Time

Change a File to Any Desired Time

Create a New, Empty File

Create a New Directory

Create a New Directory and Any Necessary Subdirectories

Copy Files

Copy Files Using Wildcards

Copy Files Verbosely

Stop Yourself from Copying over Important Files

Copy Directories

Copy Files As Perfect Backups in Another Directory

Move Files and Folders

Rename Files and Folders

Understand How Linux Stores Files

Create a Link Pointing to Another File or Directory

Delete Files

Remove Several Files at Once with Wildcards

Prevent Yourself from Deleting Key Files

Delete an Empty Directory

Remove Files and Directories That Aren’t Empty

Deleting Troublesome Files

Chapter 4 Learning About Commands

Find Out About Commands with man

Quickly Find Out What a Command Does Based on Its Name

Search for a Command Based on What It Does

Read a Command’s Specific Man Page

Learn About Commands with info

Navigate Within info

Locate the Paths for a Command’s Executable, Source Files, and Man Pages

Find Out Which Version of a Command Will Run

Discover How a Command Will Be Interpreted

Chapter 5 Building Blocks

Run Several Commands Sequentially

Run Commands Only If the Previous Ones Succeed

Run a Command Only If the Previous One Fails

Plug the Output of a Command into Another Command

Understand Input/Output Streams

Use the Output of One Command As Input for Another

Redirect a Command’s Output to a File

Prevent Overwriting Files When Using Redirection

Append a Command’s Output to a File

Use a File As Input for a Command

Combine Input and Output Redirection

Send Output to a File and to stdout at the Same Time

Part II: Working with Files


Chapter 6 Viewing (Mostly Text) Files

Figure Out a File’s Type

View Files on stdout

Concatenate Files to stdout

Concatenate Files to Another File

Concatenate Files and Number the Lines

View Text Files a Screen at a Time

Search Within Your Pager

Edit Files Viewed with a Pager

View the First 10 Lines of a File

View the First 10 Lines of Several Files

View the First Several Lines of a File or Files

View the First Several Bytes, Kilobytes, or Megabytes of a File

View the Last 10 Lines of a File

View the Last 10 Lines of Several Files

View the Last Several Lines of a File or Files

View the Constantly Updated Last Lines of a File or Files

Chapter 7 Manipulating Text Files with Filters

Count the Number of Words, Lines, and Characters in a File

Number Lines in a File

Select an Entire Column of Data in a Delimited File

Sort the Contents of a File

Sort the Contents of a File Numerically

Remove Duplicate Lines in a File

Substitute Selected Characters with Others

Replace Repeated Characters with a Single Instance

Delete Matching Characters

Transform Text in a File

Print Specific Fields in a File

Chapter 8 Ownerships and Permissions

Become Another User

Become Another User, with His Environment Variables

Become root

Become root, with Its Environment Variables

Change the Group Owning Files and Directories

Recursively Change the Group Owning a Directory

Change the Owner of Files and Directories

Change the Owner and Group of Files and Directories

Understand the Basics of Permissions

Change Permissions on Files and Directories Using Alphabetic Notation

Change Permissions on Files and Directories Using Numeric Permissions

Change Permissions Recursively

Set and Then Clear suid

Set and Then Clear sgid

Set and Then Clear the Sticky Bit

Chapter 9 Archiving and Compression

Archive and Compress Files Using zip

Get the Best Compression Possible with zip

Archive and Compress Files of a Specified Type in Directories and Subdirectories

Password-Protect Compressed Zip Archives

Unzip Files

Test Files That Will Be Unzipped

Archive and Compress Files Using gzip

Archive and Compress Files Recursively Using gzip

Uncompress Files Compressed with gzip

Test Files That Will Be Unzipped with gunzip

Archive and Compress Files Using bzip2

Uncompress Files Compressed with bzip2

Test Files That Will Be Unzipped with bunzip2

Archive Files with tar

Archive and Compress Files with tar and gzip

Test Files That Will Be Untarred and Uncompressed

Untar and Uncompress Files

Part III: Finding Files, Words, and More


Chapter 10 Finding Files, Directories, Words, and Phrases

Search a Database of Filenames

Search a Database of Filenames Without Worrying About Case

Update the Database Used by locate

Searching Inside Text Files for Patterns

The Basics of Searching Inside Text Files for Patterns

Search Recursively for Text in Files

Search for Words and Highlight the Results

Search for Text in Files, Ignoring Case

Search for Whole Words in Files

Show Line Numbers Where Words Appear in Files

Search the Output of Other Commands for Specific Words

See Context for Words Appearing in Files

Show Lines Where Words Do Not Appear in Files

List Files Containing Searched-for Words

List the Number of Occurrences of Words in Files

Search for Words Inside Search Results

Chapter 11 The find Command

Find Files by Name

Find Files by Ownership

Find Files by File Size

Find Files by File Type

Find Files by Time

Show Results If the Expressions Are True (AND)

Show Results If Either Expression Is True (OR)

Show Results If the Expression Is Not True (NOT)

Execute a Command on Found Files

Execute a Command on Found Files More Efficiently

Execute a Command on Found Files Containing Spaces

Part IV: Your Environment


Chapter 12 Your Shell

View Your Command-Line History

Run the Last Command Again

Run a Previous Command Using Numbers

Run a Previous Command Using a String

Search for a Previous Command and Run It

Display All Command Aliases

View a Specific Command Alias

Create a New Temporary Alias

Create a New Permanent Alias

Remove an Alias

Create a New Temporary Function

Create a New Permanent Function

Display All Functions

Remove a Function

When to Use an Alias and When to Use a Function

Chapter 13 Monitoring System Resources

Discover How Long Your Computer Has Been Running

View All Currently Running Processes

View a Process Tree

View Processes Owned by a Particular User

End a Running Process

View a Dynamically Updated List of Running Processes

List Open Files

List a User’s Open Files

List Users for a Particular File

List Processes for a Particular Program

Display Information About System RAM

Show File System Disk Usage

Report File Space Used by a Directory

Report Just the Total Space Used for a Directory

Chapter 14 Installing Software

Install Software Packages (RPM)

Remove Software Packages (RPM)

Install Software Packages and Dependencies (RPM)

Remove Software Packages and Dependencies (RPM)

Upgrade Software Packages and Dependencies (RPM)

Find Packages Available for Download (RPM)

Install Software Packages (DEB)

Remove Software Packages (DEB)

Install Software Packages and Dependencies (DEB)

Remove Software Packages and Dependencies (DEB)

Upgrade Software Packages and Dependencies (DEB)

Find Packages Available for Download (DEB)

Clean Up Unneeded Installation Packages (DEB)

Troubleshoot Problems with APT (DEB)

Part V: Networking


Chapter 15 Connectivity

View the Status of Your Network Interfaces

Verify That a Computer Is Running and Accepting Requests

Trace the Route Packets Take Between Two Hosts

Query DNS Records

Configure a Network Interface

View the Status of Your Wireless Network Interfaces

Configure a Wireless Network Interface

Grab a New Address Using DHCP

Make a Network Connection Active

Bring a Network Connection Down

Display Your IP Routing Table

Change Your IP Routing Table

Troubleshooting Network Problems

Chapter 16 Working on the Network

Securely Log In to Another Compute

Securely Log In to Another Machine Without a Password

Securely Transfer Files Between Machines

Securely Copy Files Between Hosts

Securely Transfer and Back Up Files

Download Files Non-interactively

Download Websites Non-interactively

Download Sequential Files and Internet Resources


Sample Content

Online Sample Chapter

Navigating Your File System in Linux

Sample Pages

Download the sample pages (includes Chapter 2 and Index)

Table of Contents

  • Part I: Getting Started
  • Chapter 1 Things to Know About Your Command Line
  • Chapter 2 Navigating Your File System
  • Chapter 3 Creation and Destruction
  • Chapter 4 Learning About Commands
  • Chapter 5 Building Blocks
  • Part II: Working with Files
  • Chapter 6 Viewing (Mostly Text) Files
  • Chapter 7 Manipulating Text Files with Filters
  • Chapter 8 Ownerships and Permissions
  • Chapter 9 Archiving and Compression
  • Part III: Finding Files, Words, and More
  • Chapter 10 Finding Files, Directories, Words, and Phrases
  • Chapter 11 The find Command
  • Part IV: Your Environment
  • Chapter 12 Your Shell
  • Chapter 13 Monitoring System Resources
  • Chapter 14 Installing Software
  • Part V: Networking
  • Chapter 15 Connectivity
  • Chapter 16 Working on the Network

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020