The latest update to the gold standard in Linux shell scripting guides In the newly revised fifth edition of Linux Command Line and Shell Scripting Bible, experienced system and network administrator Richard Blum delivers an up-to-date and authoritative discussion of the fundamentals of shell scripting in Linux, as well as the advanced topics, working examples, and real-world applications that equip you to administer Linux systems. The book includes usable scripts and brand-new coverage for DevOps engineers interested in deploying applications on a variety of Linux distributions and cloud…mehr
The latest update to the gold standard in Linux shell scripting guides In the newly revised fifth edition of Linux Command Line and Shell Scripting Bible, experienced system and network administrator Richard Blum delivers an up-to-date and authoritative discussion of the fundamentals of shell scripting in Linux, as well as the advanced topics, working examples, and real-world applications that equip you to administer Linux systems. The book includes usable scripts and brand-new coverage for DevOps engineers interested in deploying applications on a variety of Linux distributions and cloud platforms while minimizing compatibility issues. You'll also find: * Concrete strategies and practical tips to help you understand the Linux Shell and write basic script utilities * Step-by-step instructions on how to schedule scripts to run automatically to perform standard Linux administration and DevOps functions for you * Easy-to-follow tutorials of alternative shells, including zsh, tcsh, and the Korn shell * Advanced shell scripting techniques, including functions, sed, gawk, and regular expressions Perfect for aspiring and practicing Linux system administrators, Linux Command Line and Shell Scripting Bible is also a must-read for anyone who uses a Linux at home or at work.
RICHARD BLUM has over three decades of experience working as a system and network administrator. He is the author of several Linux books and is an accomplished online Linux instructor. CHRISTINE BRESNAHAN is an Adjunct Professor at Ivy Tech Community College where she teaches Linux certification and Python classes. She is the author of several Linux books, including the CompTIA Linux+ Study Guide, Fourth Edition.
Inhaltsangabe
Acknowledgments xi
Part I: The Linux Command Line 1
Chapter 1: Starting with Linux Shells 3
Investigating Linux 3
Looking into the Linux kernel 4
System memory management 5
Software program management 6
Hardware management 8
Filesystem management 8
The GNU utilities 9
The core GNU utilities 10
The shell 10
The Linux desktop environment 11
The X Window software 12
The KDE Plasma desktop 12
The GNOME desktop 13
Other desktops 15
Examining Linux Distributions 17
Core Linux distributions 18
Specialized Linux distributions 19
Summary 20
Chapter 2: Getting to the Shell 21
Reaching the Command Line 21
Console terminals 22
Graphical terminals 22
Accessing CLI via a Linux Console Terminal 23
Accessing CLI via Graphical Terminal Emulation 26
Using the GNOME Terminal Emulator 27
Accessing GNOME Terminal 27
The menu bar 32
Using the Konsole Terminal Emulator 36
Accessing Konsole 36
The menu bar 38
Using the xterm Terminal Emulator 42
Accessing xterm 43
Command-line parameters 44
Summary 45
Chapter 3: Basic Bash Shell Commands 47
Starting the Shell 47
Using the Shell Prompt 48
Interacting with the Bash Manual 49
Navigating the Filesystem 53
Looking at the Linux filesystem 53
Traversing directories 57
Using absolute directory references 57
Using relative directory references 59
Listing Files and Directories 60
Displaying a basic listing 61
Displaying a long listing 63
Filtering listing output 64
Handling Files 66
Creating files 66
Copying files 66
Using command-line completion 69
Linking files 69
Renaming files 71
Deleting files 73
Managing Directories 74
Creating directories 74
Deleting directories 75
Viewing File Contents 77
Viewing the file type 77
Viewing the whole file 78
Using the cat command 78
Using the more command 78
Using the less command 80
Viewing parts of a file 80
Using the tail command 80
Using the head command 82
Summary 82
Chapter 4: More Bash Shell Commands 85
Monitoring Programs 85
Peeking at the processes 85
Unix-style parameters 86
BSD-style parameters 89
The GNU long parameters 91
Real-time process monitoring 93
Stopping processes 95
The kill command 95
The pkill command 96
Monitoring Disk Space 96
Mounting media 97
The mount command 97
The umount command 99
Using the df command 100
Using the du command 101
Working with Data Files 102
Sorting data 102
Searching for data 106
Compressing data 108
Archiving data 109
Summary 111
Chapter 5: Understanding the Shell 113
Investigating Shell Types 113
Exploring Parent and Child Shell Relationships 117