
Linux Command Line and Shell Scripting Bible.
Title:
Linux Command Line and Shell Scripting Bible.
Author:
Blum, Richard.
ISBN:
9780470386002
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (842 pages)
Series:
Bible ; v.481
Bible
Contents:
Command Line and Shell Scripting Bible -- About the Author -- Credits -- Contents at a Glance -- Contents -- 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 -- What Is Linux? -- Linux Distributions -- Summary -- Chapter 2: Getting to the Shell -- Terminal Emulation -- The terminfo Database -- The Linux Console -- The xterm Terminal -- The Konsole Terminal -- The GNOME Terminal -- Summary -- Chapter 3: Basic bash Shell Commands -- Starting the Shell -- The Shell Prompt -- The bash Manual -- Filesystem Navigation -- File and Directory Listing -- File Handling -- Directory Handling -- Viewing File Contents -- Summary -- Chapter 4: More bash Shell Commands -- Monitoring Programs -- Monitoring Disk Space -- Working with Data Files -- Summary -- Chapter 5: Using Linux Environment Variables -- What Are Environment Variables? -- Setting Environment Variables -- Removing Environment Variables -- Default Shell Environment Variables -- Setting the PATH Environment Variable -- Locating System Environment Variables -- Variable Arrays -- Using Command Aliases -- Summary -- Chapter 6: Understanding Linux File Permissions -- Linux Security -- Using Linux Groups -- Decoding File Permissions -- Changing Security Settings -- Sharing Files -- Summary -- Chapter 7: Working with Editors -- The vim Editor -- The emacs Editor -- The KDE Family of Editors -- The GNOME Editor -- Summary -- Part II: Shell Scripting Basics -- Chapter 8: Basic Script Building -- Using Multiple Commands -- Creating a Script File -- Displaying Messages -- Using Variables -- Redirecting Input and Output -- Pipes -- Performing Math -- Exiting the Script -- Summary -- Chapter 9: Using Structured Commands.
Working with the if-then Statement -- The if-then-else Statement -- Nesting ifs -- The test Command -- Compound Condition Testing -- Advanced if-then Features -- The case Command -- Summary -- Chapter 10: More Structured Commands -- The for Command -- The C-Style for Command -- The while Command -- The until Command -- Nesting Loops -- Looping on File Data -- Controlling the Loop -- Processing the Output of a Loop -- Summary -- Chapter 11: Handling User Input -- Command Line Parameters -- Special Parameter Variables -- Being Shifty -- Working With Options -- Standardizing Options -- Getting User Input -- Summary -- Chapter 12: 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 -- Summary -- Chapter 13: Script Control -- Handling Signals -- Running Scripts in Background Mode -- Running Scripts without a Console -- Job Control -- Being Nice -- Running Like Clockwork -- Start At the Beginning -- Summary -- Part III: Advanced Shell Scripting -- Chapter 14: Creating Functions -- Basic Script Functions -- Returning a Value -- Using Variables in Functions -- Array Variables and Functions -- Function Recursion -- Creating a Library -- Using Functions on the Command Line -- Summary -- Chapter 15: Adding Color to Scripts -- Creating Text Menus -- Adding Color -- Doing Windows -- Getting Graphic -- Summary -- Chapter 16: Introducing sed and gawk -- Text Manipulation -- The sed Editor Basics -- Summary -- Chapter 17: Regular Expressions -- What Are Regular Expressions? -- Defining BRE Patterns -- Extended Regular Expressions -- Regular Expressions in Action -- Summary -- Chapter 18: Advanced sed -- Multiline Commands -- The Hold Space -- Negating a Command.
Changing the Flow -- Pattern Replacement -- Using sed in Scripts -- Creating sed Utilities -- Summary -- Chapter 19: Advanced gawk -- Using Variables -- Working with Arrays -- Using Patterns -- Structured Commands -- Formatted Printing -- Built-in Functions -- User-Defined Functions -- Summary -- Part IV: Alternative Linux Shells -- Chapter 20: The ash Shell -- What Is the ash Shell? -- The Original ash Shell -- The dash Shell -- Scripting in dash -- Summary -- Chapter 21: The tcsh Shell -- What Is the tcsh Shell? -- The tcsh Shell Components -- Scripting in tcsh -- Summary -- Chapter 22: The Korn Shell -- The Korn Shell History -- The Parts of the ksh93 Shell -- Scripting in the ksh93 Shell -- Summary -- Chapter 23: The zsh Shell -- History of the zsh Shell -- Parts of the zsh Shell -- Scripting with zsh -- Summary -- Part V: Advanced Topics -- Chapter 24: Using a Database -- The MySQL Database -- The PostgreSQL Database -- Working with Tables -- Using the Database in Your Scripts -- Summary -- Chapter 25: Using the Web -- The Lynx Program -- The cURL Program -- Networking with zsh -- Summary -- Chapter 26: Using E-Mail -- The Basics of Linux E-Mail -- Setting Up Your Server -- Sending a Message with Mailx -- The Mutt Program -- Summary -- Chapter 27: Shell Scripts for Administrators -- Monitoring System Statistics -- Performing Backups -- Summary -- Appendix A: Quick Guide to bash Commands -- Built-In Commands -- Bash Commands -- Environment Variables -- Appendix B: Quick Guide to sed and gawk -- The sed Editor -- The gawk program -- Appendix C: Comparing Shells -- Variables -- Structured Commands -- Mathematical Operations -- Index.
Abstract:
There's a lot to be said for going back to basics. Not only does this Bible give you a quick refresher on the structure of open-source Linux software, it also shows you how to bypass the hefty graphical user interface on Linux systems and start interacting the fast and efficient way?with command lines and automated scripts. You'll learn how to manage files on the filesystem, start and stop programs, use databases, even do Web programming?without a GUI?with this one-stop resource.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Genre:
Electronic Access:
Click to View