Book description
The Most Useful Tutorial and Reference, with Hundreds of High-Quality Examples for Every Popular Linux Distribution
“First Sobell taught people how to use Linux . . . now he teaches you the power of Linux. A must-have book for anyone who wants to take Linux to the next level.”
—Jon “maddog” Hall, Executive Director, Linux International
Discover the Power of Linux–Covers macOS, too!
- Learn from hundreds of realistic, high-quality examples, and become a true command-line guru
- Covers MariaDB, DNF, and Python 3
- 300+ page reference section covers 102 utilities, including macOS commands
For use with all popular versions of Linux, including Ubuntu,™ Fedora,™ openSUSE,™ Red Hat,® Debian, Mageia, Mint, Arch, CentOS, and macOS
Linux is today’s dominant Internet server platform. System administrators and Web developers need deep Linux fluency, including expert knowledge of shells and the command line. This is the only guide with everything you need to achieve that level of Linux mastery. Renowned Linux expert Mark Sobell has brought together comprehensive, insightful guidance on the tools sysadmins, developers, and power users need most, and has created an outstanding day-to-day reference, updated with assistance from new coauthor Matthew Helmke.
This title is 100 percent distribution and release agnostic. Packed with hundreds of high-quality, realistic examples, it presents Linux from the ground up: the clearest explanations and most useful information about everything from filesystems to shells, editors to utilities, and programming tools to regular expressions.
Use a Mac? You’ll find coverage of the macOS command line, including macOS-only tools and utilities that other Linux/UNIX titles ignore.
A Practical Guide to Linux® Commands, Editors, and Shell Programming, Fourth Edition, is the only guide to deliver
- A MariaDB chapter to get you started with this ubiquitous relational database management system (RDBMS)
- A masterful introduction to Python for system administrators and power users
- In-depth coverage of the bash and tcsh shells, including a complete discussion of environment, inheritance, and process locality, plus coverage of basic and advanced shell programming
- Practical explanations of core utilities, from aspell to xargs, including printf and sshfs/curlftpfs, PLUS macOS—specific utilities from ditto to SetFile
- Expert guidance on automating remote backups using rsync
- Dozens of system security tips, including step-by-step walkthroughs of implementing secure communications using ssh and scp
- Tips and tricks for customizing the shell, including step values, sequence expressions, the eval builtin, and implicit command-line continuation
- High-productivity editing techniques using vim and emacs
- A comprehensive, 300-plus-page command reference section covering 102 utilities, including find, grep, sort, and tar
- Instructions for updating systems using apt-get and dnf
- And much more, including coverage of BitTorrent, gawk, sed, find, sort, bzip2, and regular expressions
Register your product at informit.com/register for convenient access to downloads, updates, and/or corrections as they become available.
Table of contents
- Cover Page
- About This E-Book
- Title Page
- Copyright Page
- Dedication
- Brief Contents
- Contents
- Preface
- Chapter 1: Welcome to Linux and macOS
-
Part I The Linux and macOS Operating Systems
- Chapter 2: Getting Started
-
Chapter 3: The Utilities
- Special Characters
- Basic Utilities
-
Working with Files
- cp: Copies a File
- mv: Changes the Name of a File
- lpr: Prints a File
- grep: Searches for a String
- head: Displays the Beginning of a File
- tail: Displays the End of a File
- sort: Displays a File in Order
- uniq: Removes Duplicate Lines from a File
- diff: Compares Two Files
- file: Identifies the Contents of a File
- | (Pipeline): Communicates Between Processes
- Four More Utilities
- Compressing and Archiving Files
- Locating Utilities
- Displaying User and System Information
- Communicating with Other Users
- Chapter Summary
- Exercises
- Advanced Exercises
- Chapter 4: The Filesystem
- Chapter 5: The Shell
-
Part II The Editors
-
Chapter 6: The vim Editor
- History
- Tutorial: Using vim to Create and Edit a File
- Introduction to vim Features
- Command Mode: Moving the Cursor
- Input Mode
- Command Mode: Deleting and Changing Text
- Searching and Substituting
- Miscellaneous Commands
- Copying, Moving, and Deleting Text
- Reading and Writing Files
- Setting Parameters
- Advanced Editing Techniques
- Units of Measure
- Chapter Summary
- Exercises
- Advanced Exercises
- Chapter 7: The emacs Editor
-
Chapter 6: The vim Editor
-
Part III The Shells
-
Chapter 8: The Bourne Again Shell (bash)
- Background
- Startup Files
- Commands That Are Symbols
- Redirecting Standard Error
- Writing and Executing a Simple Shell Script
- Control Operators: Separate and Group Commands
- Job Control
- Manipulating the Directory Stack
- Parameters and Variables
- Special Characters
- Locale
- Time
- Processes
- History
- Aliases
- Functions
- Controlling bash: Features and Options
- Processing the Command Line
- Chapter Summary
- Exercises
- Advanced Exercises
- Chapter 9: The TC Shell (tcsh)
-
Chapter 8: The Bourne Again Shell (bash)
-
Part IV Programming Tools
- Chapter 10: Programming the Bourne Again Shell (bash)
- Chapter 11: The Perl Scripting Language
- Chapter 12: The Python Programming Language
- Chapter 13: The MariaDB SQL Database Management System
- Chapter 14: The AWK Pattern Processing Language
- Chapter 15: The sed Editor
- Part V Secure Network Utilities
-
Part VI Command Reference
- Utilities That Display and Manipulate Files
- Network Utilities
- Utilities That Display and Alter Status
- Utilities That Are Programming Tools
- Miscellaneous Utilities
- Standard Multiplicative Suffixes
- Common Options
-
The sample Utility
- sample Brief description of what the utility does
- aspell Checks a file for spelling errors
- at Executes commands at a specified time
- busybox Implements many standard utilities
- bzip2 Compresses or decompresses files
- cal Displays a calendar
- cat Joins and displays files
- cd Changes to another working directory
- chgrp Changes the group associated with a file
- chmod Changes the access mode (permissions) of a file
- chown Changes the owner of a file and/or the group the file is associated with
- cmp Compares two files
- comm Compares sorted files
- configure Configures source code automatically
- cp Copies files
- cpio Creates an archive, restores files from an archive, or copies a directory hierarchy
- crontab Maintains crontab files
- cut Selects characters or fields from input lines
- date Displays or sets the system time and date
- dd Converts and copies a file
- df Displays disk space usage
- diff Displays the differences between two text files
- diskutil Checks, modifies, and repairs local volumes
- ditto Copies files and creates and unpacks archives
- dmesg Displays kernel messages
- dscl Displays and manages Directory Service information
- du Displays information on disk usage by directory hierarchy and/or file
- echo Displays a message
- expand/unexpand Converts TABs to SPACEs and SPACEs to TABs
- expr Evaluates an expression
- file Displays the classification of a file
- find Finds files based on criteria
- finger Displays information about users
- fmt Formats text very simply
- fsck Checks and repairs a filesystem
- ftp Transfers files over a network
- gawk Searches for and processes patterns in a file
- gcc Compiles C and C++ programs
- GetFileInfo Displays file attributes
- grep Searches for a pattern in files
- gzip Compresses or decompresses files
- head Displays the beginning of a file
- join Joins lines from two files based on a common field
- kill Terminates a process by PID
- killall Terminates a process by name
- launchctl Controls the launchd daemon
- less Displays text files, one screen at a time
- ln Makes a link to a file
- lpr Sends files to printers
- ls Displays information about one or more files
- make Keeps a set of programs current
- man Displays documentation for utilities
- mc Manages files in a textual environment (aka Midnight Commander)
- mkdir Creates a directory
- mkfs Creates a filesystem on a device
- mv Renames or moves a file
- nice Changes the priority of a command
- nl Numbers lines from a file
- nohup Runs a command that keeps running after you log out
- od Dumps the contents of a file
- open Opens files, directories, and URLs
- otool Displays object, library, and executable files
- paste Joins corresponding lines from files
- pax Creates an archive, restores files from an archive, or copies a directory hierarchy
- plutil Manipulates property list files
- pr Paginates files for printing
- printf Formats string and numeric data
- ps Displays process status
- renice Changes the priority of a process
- rm Removes a file (deletes a link)
- rmdir Removes directories
- rsync Securely copies files and directory hierarchies over a network
- scp Securely copies one or more files to or from a remote system
- screen Manages several textual windows
- sed Edits a file noninteractively
- SetFile Sets file attributes
- sleep Creates a process that sleeps for a specified interval
- sort Sorts and/or merges files
- split Divides a file into sections
- ssh Securely runs a program or opens a shell on a remote system
- sshfs/curlftpfs Mounts a directory on an OpenSSH or FTP server as a local directory
- stat Displays information about files
- strings Displays strings of printable characters from files
- stty Displays or sets terminal parameters
- sysctl Displays and alters kernel variables at runtime
- tail Displays the last part (tail) of a file
- tar Stores or retrieves files to/from an archive file
- tee Copies standard input to standard output and one or more files
- telnet Connects to a remote computer over a network
- test Evaluates an expression
- top Dynamically displays process status
- touch Creates a file or changes a file’s access and/or modification time
- tr Replaces specified characters
- tty Displays the terminal pathname
- tune2fs Changes parameters on an ext2, ext3, or ext4 filesystem
- umask Specifies the file-creation permissions mask
- uniq Displays unique lines from a file
- w Displays information about local system users
- wc Displays the number of lines, words, and bytes in one or more files
- which Shows where in PATH a utility is located
- who Displays information about logged-in users
- xargs Converts standard input to command lines
-
Part VII Appendixes
- Appendix A Regular Expressions
- Appendix B Help
- Appendix C Keeping the System Up-to-Date
- Appendix D macOS Notes
- Glossary
- File Tree Index
- Utility Index
- Main Index
Product information
- Title: A Practical Guide to Linux Commands, Editors, and Shell Programming, Fourth Edition
- Author(s):
- Release date: November 2017
- Publisher(s): Pearson
- ISBN: 9780134774626
You might also like
book
The Linux Command Line, 2nd Edition
The Linux Command Line takes you from your very first terminal keystrokes to writing full programs …
book
The Linux Programming Interface
The Linux Programming Interface is the definitive guide to the Linux and UNIX programming interface—the interface …
book
Linux Command Line and Shell Scripting Bible, 4th Edition
Advance your understanding of the Linux command line with this invaluable resource Linux Command Line and …
video
Linux Fundamentals, 2nd Edition
10+ Hours of Video Instruction More than 10 hours of video instruction to get you up …