Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Table of Contents
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
← Prev
Back
Next →
← Prev
Back
Next →