Linux Command Line and Shell Scripting Bible.

Blum, Richard.
Somerset : John Wiley & Sons, Incorporated, 2015.
1 online resource (818 pages)
3rd ed.
Bible Ser.
Bible Ser.

Location Notes Your Loan Policy


Other records:
Linux (Computer file).
Operating systems (Computers).
Scripting languages (Computer science).
Electronic books.
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 computer, saving time and expanding capability. This third edition incorporates thirty pages of new functional examples that are fully updated to align with the latest Linux features. Beginning with command line fundamentals, the book moves into shell scripting and shows you the practical application of commands in automating frequently performed functions. This guide includes useful tutorials, and a desk reference value of numerous examples. The Linux command line allows you to type specific shell commands directly into the system to manipulate files and query system resources. Command line statements can be combined into short programs called shell scripts, a practice increasing in popularity due to its usefulness in automation. This book is a complete guide providing detailed instruction and expert advice working within this aspect of Linux. Write simple script utilities to automate tasks Understand the shell, and create shell scripts Produce database, e-mail, and web scripts Study scripting examples ranging from basic to advanced Whether used as a tutorial or as a quick reference, this book contains information that every Linux user should know. Why not learn to use the system to its utmost capability? Linux is a robust system with tremendous potential, and Linux Command Line and Shell Scripting Bible opens the door to new possibilities.
Title Page
Part I: The Linux Command Line
Chapter 1: Starting with Linux Shells
What Is Linux?
Looking into the Linux kernel
System memory management
Software program management
Hardware management
Filesystem management
The GNU utilities
The core GNU utilities
The shell
The Linux desktop environment
The X Window system
The KDE desktop
The GNOME desktop
The Unity desktop
Other desktops
Linux Distributions
Core Linux distributions
Specialized Linux distributions
The Linux LiveCD
Chapter 2: Getting to the Shell
Reaching the Command Line
Console terminals
Graphical terminals
Accessing CLI via a Linux Console Terminal
Accessing CLI via Graphical Terminal Emulation
Using the GNOME Terminal Emulator
Accessing the GNOME terminal
The menu bar
Using the Konsole Terminal Emulator
Accessing the Konsole terminal
The menu bar
Using the xterm Terminal Emulator
Accessing xterm
Command line parameters
Chapter 3: Basic bash Shell Commands
Starting the Shell
Using the Shell Prompt
Interacting with the bash Manual
Navigating the Filesystem
Looking at the Linux filesystem
Traversing directories
Using absolute directory references
Using relative directory references
Listing Files and Directories
Displaying a basic listing
Displaying a long listing
Filtering listing output
Handling Files
Creating files
Copying files
Using tab auto-complete
Linking files
Renaming files
Deleting files
Managing Directories
Creating directories
Deleting directories
Viewing File Contents
Viewing the file type
Viewing the whole file
Using the cat command
Using the more command
Using the less command
Viewing parts of a file.
Using the tail command
Using the head command
Chapter 4: More bash Shell Commands
Monitoring Programs
Peeking at the processes
Unix-style parameters
BSD-style parameters
The GNU long parameters
Real-time process monitoring
Stopping processes
The kill command
The killall command
Monitoring Disk Space
Mounting media
The mount command
The unmount command
Using the df command
Using the du command
Working with Data Files
Sorting data
Searching for data
Compressing data
Archiving data
Chapter 5: Understanding the Shell
Exploring Shell Types
Exploring Parent and Child Shell Relationships
Looking at process lists
Creatively using subshells
Investigating background mode
Putting process lists into the background
Looking at co-processing
Understanding Shell Built-In Commands
Looking at external commands
Looking at built-in commands
Using the history command
Using command aliases
Chapter 6: Using Linux Environment Variables
Exploring Environment Variables
Looking at global environment variables
Looking at local environment variables
Setting User-Defined Variables
Setting local user-defined variables
Setting global environment variables
Removing Environment Variables
Uncovering Default Shell Environment Variables
Setting the PATH Environment Variable
Locating System Environment Variables
Understanding the login shell process
Viewing the /etc/profile file
Viewing the HOME startup files
Understanding the interactive shell process
Understanding the non-interactive shell process
Making environment variables persistent
Learning about Variable Arrays
Chapter 7: Understanding Linux File Permissions
Linux Security
The /etc/passwd file
The /etc/shadow file.
Adding a new user
Removing a user
Modifying a user
passwd and chpasswd
chsh, chfn, and chage
Using Linux Groups
The /etc/group file
Creating new groups
Modifying groups
Decoding File Permissions
Using file permission symbols
Default file permissions
Changing Security Settings
Changing permissions
Changing ownership
Sharing Files
Chapter 8: Managing Filesystems
Exploring Linux Filesystems
Understanding the basic Linux filesystems
Looking at the ext filesystem
Looking at the ext2 filesystem
Understanding journaling filesystems
Looking at the ext3 filesystem
Looking at the ext4 filesystem
Looking at the Reiser filesystem
Looking at the journaled filesystem
Looking at the XFS filesystem
Understanding the copy-on-write filesystems
Looking at the ZFS filesystem
Looking at the Btrfs filesystem
Working with Filesystems
Creating partitions
Creating a filesystem
Checking and repairing a filesystem
Managing Logical Volumes
Exploring logical volume management layout
Using the LVM in Linux
Taking a snapshot
Using the Linux LVM
Defining physical volumes
Creating volume groups
Creating logical volumes
Creating the filesystem
Modifying the LVM
Chapter 9: Installing Software
Package Management Primer
The Debian-Based Systems
Managing packages with aptitude
Installing software packages with aptitude
Updating software with aptitude
Uninstalling software with aptitude
The aptitude repositories
The Red Hat-Based Systems
Listing installed packages
Installing software with yum
Updating software with yum
Uninstalling software with yum
Dealing with broken dependencies
Yum repositories
Installing from Source Code
Chapter 10: Working with Editors
Visiting the vim Editor
Checking your vim package
Exploring vim basics
Editing data
Copying and pasting
Searching and substituting
Navigating the nano Editor
Exploring the emacs Editor
Checking your emacs package
Using emacs on the console
Exploring the basics of emacs
Editing data
Copying and pasting
Searching and replacing
Using buffers in emacs
Using windows in console mode emacs
Using emacs in a GUI
Exploring the KDE Family of Editors
Looking at the KWrite editor
Looking at the Kate editor
Exploring the GNOME Editor
Starting gedit
Understanding basic gedit features
Setting preferences
Setting view preferences
Setting editor preferences
Setting font &
color preferences
Managing plug-ins
Part II: Shell Scripting Basics
Chapter 11: Basic Script Building
Using Multiple Commands
Creating a Script File
Displaying Messages
Using Variables
Environment variables
User variables
Command substitution
Redirecting Input and Output
Output redirection
Input redirection
Performing Math
The expr command
Using brackets
A floating-point solution
The basics of bc
Using bc in scripts
Exiting the Script
Checking the exit status
The exit command
Chapter 12: Using Structured Commands
Working with the if-then Statement
Exploring the if-then-else Statement
Nesting ifs
Trying the test Command
Using numeric comparisons
Using string comparisons
Looking at string equality
Looking at string order
Looking at string size
Using file comparisons
Checking directories
Checking whether an object exists
Checking for a file
Checking for read access
Checking for empty files
Checking whether you can write to a file.
Checking whether you can run a file
Checking ownership
Checking default group membership
Checking file date
Considering Compound Testing
Working with Advanced if-then Features
Using double parentheses
Using double brackets
Considering the case Command
Chapter 13: More Structured Commands
The for Command
Reading values in a list
Reading complex values in a list
Reading a list from a variable
Reading values from a command
Changing the field separator
Reading a directory using wildcards
The C-Style for Command
The C language for command
Using multiple variables
The while Command
Basic while format
Using multiple test commands
The until Command
Nesting Loops
Looping on File Data
Controlling the Loop
The break command
Breaking out of a single loop
Breaking out of an inner loop
Breaking out of an outer loop
The continue command
Processing the Output of a Loop
Practical Examples
Finding executable files
Creating multiple user accounts
Chapter 14: Handling User Input
Passing Parameters
Reading parameters
Reading the script name
Testing parameters
Using Special Parameter Variables
Counting parameters
Grabbing all the data
Being Shifty
Working with Options
Finding your options
Processing simple options
Separating options from parameters
Processing options with values
Using the getopt command
Looking at the command format
Using getopt in your scripts
Advancing to getopts
Standardizing Options
Getting User Input
Reading basics
Timing out
Reading with no display
Reading from a file
Chapter 15: Presenting Data
Understanding Input and Output
Standard file descriptors
Redirecting errors
Redirecting errors only.
Redirecting errors and data.
Description based on publisher supplied metadata and other sources.
Local notes:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2021. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Bresnahan, Christine.
Other format:
Print version: Blum, Richard Linux Command Line and Shell Scripting Bible