Linux Command Line and Shell Scripting Bible
✍ Scribed by Richard Blum, Christine Bresnahan
- Publisher
- Wiley
- Year
- 2021
- Tongue
- English
- Leaves
- 1113
- Edition
- 4
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
Advance your understanding of the Linux command line with this invaluable resource
Linux Command Line and Shell Scripting Bible, 4th Edition is the newest installment in the indispensable series known to Linux developers all over the world. Packed with concrete strategies and practical tips, the latest edition includes brand-new content covering:
- Understanding the Shell
- Writing Simple Script Utilities
- Producing Database, Web & Email Scripts
- Creating Fun Little Shell Scripts
Written by accomplished Linux professionals Christine Bresnahan and Richard Blum, Linux Command Line and Shell Scripting Bible, 4th Edition teaches readers the fundamentals and advanced topics necessary for a comprehensive understanding of shell scripting in Linux. The book is filled with real-world examples and usable scripts, helping readers navigate the challenging Linux environment with ease and convenience.
The book is perfect for anyone who uses Linux at home or in the office and will quickly find a place on every Linux enthusiast’s bookshelf.
✦ Table of Contents
Cover
Title Page
Copyright
Dedication
About the Authors
About the Technical Editor
Acknowledgments
Introduction
Who Should Read This Book
How This Book Is Organized
Minimum Requirements
Where to Go from Here
Part I: The Linux Command Line
CHAPTER 1: Starting with Linux Shells
Investigating Linux
Examining Linux Distributions
Summary
CHAPTER 2: Getting to the Shell
Reaching the Command Line
Accessing CLI via a Linux Console Terminal
Accessing CLI via Graphical Terminal Emulation
Using the GNOME Terminal Emulator
Using the Konsole Terminal Emulator
Using the xterm Terminal Emulator
Summary
CHAPTER 3: Basic Bash Shell Commands
Starting the Shell
Using the Shell Prompt
Interacting with the Bash Manual
Navigating the Filesystem
Listing Files and Directories
Handling Files
Managing Directories
Viewing File Contents
Summary
CHAPTER 4: More Bash Shell Commands
Monitoring Programs
Monitoring Disk Space
Working with Data Files
Summary
CHAPTER 5: Understanding the Shell
Investigating Shell Types
Exploring Parent and Child Shell Relationships
Understanding External and Built-In Commands
Summary
CHAPTER 6: Using Linux Environment Variables
Exploring Environment Variables
Setting User-Defined Variables
Removing Environment Variables
Uncovering Default Shell Environment Variables
Setting the PATH Environment Variable
Locating System Environment Variables
Learning about Variable Arrays
Summary
CHAPTER 7: Understanding Linux File Permissions
Exploring Linux Security
Using Linux Groups
Decoding File Permissions
Changing Security Settings
Sharing Files
Access Control Lists
Summary
CHAPTER 8: Managing Filesystems
Exploring Linux Filesystems
Working with Filesystems
Managing Logical Volumes
Summary
CHAPTER 9: Installing Software
Exploring Package Management
Inspecting the Debian-Based Systems
The Red Hat–Based Systems
Managing Software Using Containers
Installing from Source Code
Summary
CHAPTER 10: Working with Editors
Visiting the vim Editor
Navigating the nano Editor
Exploring the Emacs Editor
Exploring the KDE Family of Editors
Exploring the GNOME Editor
Summary
Part II: Shell Scripting Basics
CHAPTER 11: Basic Script Building
Using Multiple Commands
Creating a Script File
Displaying Messages
Using Variables
Redirecting Input and Output
Employing Pipes
Performing Math
Exiting the Script
Working through a Practical Example
Summary
CHAPTER 12: Using Structured Commands
Working with the if-then Statement
Exploring the if-then-else Statement
Nesting ifs
Trying the test Command
Considering Compound Testing
Working with Advanced if-then Features
Considering the case Command
Working through a Practical Example
Summary
CHAPTER 13: More Structured Commands
Looking at the for Command
Trying the C-Style for Command
Exploring the while Command
Using the until Command
Nesting Loops
Looping on File Data
Controlling the Loop
Processing the Output of a Loop
Working through a Few Practical Examples
Summary
CHAPTER 14: Handling User Input
Passing Parameters
Using Special Parameter Variables
Being Shifty
Working with Options
Standardizing Options
Getting User Input
Working through a Practical Example
Summary
CHAPTER 15: Presenting Data
Understanding Input and Output
Redirecting Output in Scripts
Redirecting Input in Scripts
Creating Your Own Redirection
Listing Open File Descriptors
Suppressing Command Output
Using Temporary Files
Logging Messages
Working through a Practical Example
Summary
CHAPTER 16: Script Control
Handling Signals
Running Scripts in Background Mode
Running Scripts without a Hang-up
Controlling the Job
Being Nice
Running like Clockwork
Working through a Practical Example
Summary
Part III: Advanced Shell Scripting
CHAPTER 17: Creating Functions
Exploring Basic Script Functions
Returning a Value from a Function
Using Variables in Functions
Investigating Array Variables and Functions
Considering Function Recursion
Creating a Library
Using Functions on the Command Line
Working Through a Practical Example
Summary
CHAPTER 18: Writing Scripts for Graphical Desktops
Creating Text Menus
Doing Windows
Getting Graphic
Working Through a Practical Example
Summary
CHAPTER 19: Introducing sed and gawk
Manipulating Text
Looking at the sed Editor Basic Commands
Working Through a Practical Example
Summary
CHAPTER 20: Regular Expressions
Exploring Regular Expressions
Defining BRE Patterns
Trying Out Extended Regular Expressions
Working Through Some Practical Examples
Summary
CHAPTER 21: Advanced sed
Looking at Multiline Commands
Holding Space
Negating a Command
Changing the Flow
Replacing via a Pattern
Placing sed Commands in Scripts
Creating sed Utilities
Working Through a Practical Example
Summary
CHAPTER 22: Advanced gawk
Using Variables
Working with Arrays
Considering Patterns
Structured Commands
Printing with Formats
Using Built‐in Functions
Trying Out User‐Defined Functions
Working Through a Practical Example
Summary
CHAPTER 23: Working with Alternative Shells
Considering the Dash Shell
Looking at the Dash Shell Features
Scripting in Dash
Exploring the zsh Shell
Viewing Parts of the zsh Shell
Scripting with zsh
Working Through a Practical Example
Summary
Part IV: Creating and Managing Practical Scripts
CHAPTER 24: Writing Simple Script Utilities
Performing Backups
Managing Account Deletion
Monitoring Your System
Summary
CHAPTER 25: Getting Organized
Understanding Version Control
Setting Up Your Git Environment
Committing with Git
Summary
APPENDIX A: Quick Guide to Bash Commands
Reviewing Built‐In Commands
Looking at Common Bash Commands
Assessing Environment Variables
APPENDIX B: Quick Guide to sed and gawk
The sed Editor
The gawk Program
Index
End User License Agreement
📜 SIMILAR VOLUMES
<p><span>Advance your understanding of the Linux command line with this invaluable resource </span></p><p><span>Linux Command Line and Shell Scripting Bible, 4th Edition</span><span> is the newest installment in the indispensable series known to Linux developers all over the world. Packed with concr
Talk directly to your system for a faster workflow with automation capability Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your
Introduction -- Part I. The Linux command line. Chapter 1: Starting with Linux shells -- Chapter 2: Getting to the shell -- Chapter 3: Basic bash shell commands -- Chapter 4: More bash shell commands -- Chapter 5: Using Linux environment variables -- Chapter 6: Understanding Linux file permissions -
Introduction --- Part I. The Linux Command Line. Chapter 1: Starting with Linux shells -- Chapter 2: Getting to the shell -- Chapter 3: Basic bash shell commands -- Chapter 4: More bash shell commands -- Chapter 5: Using Linux environment variables -- Chapter 6: Understanding Linux file permissions