Table of Contents
Contents at a Glance
Introduction ................................................................................................................................ xxxi
Part I: The Linux Command Line .................................................................................1
Chapter 1: Starting with Linux Shells .......................................................................................... 3
Chapter 2: Getting to the Shell .................................................................................................. 17
Chapter 3: Basic Bash Shell Commands ....................................................................................... 37
Chapter 4: More Bash Shell Commands ........................................................................................ 69
Chapter 5: Understanding the Shell ........................................................................................... 93
Chapter 6: Using Linux Environment Variables ...........................................................................113
Chapter 7: Understanding Linux File Permissions .......................................................................137
Chapter 8: Managing Filesystems .............................................................................................. 161
Chapter 9: Installing Software ..................................................................................................181
Chapter 10: Working with Editors ..............................................................................................201
Part II: Shell Scripting Basics ................................................................................ 229
Chapter 11: Basic Script Building ..............................................................................................231
Chapter 12: Using Structured Commands ...................................................................................257
Chapter 13: More Structured Commands ....................................................................................291
Chapter 14: Handling User Input ...............................................................................................319
Chapter 15: Presenting Data .....................................................................................................347
Chapter 16: Script Control ........................................................................................................369
Part III: Advanced Shell Scripting ...........................................................................397
Chapter 17: Creating Functions .................................................................................................399
Chapter 18: Writing Scripts for Graphical Desktops .....................................................................421
Chapter 19: Introducing sed and gawk .......................................................................................449
Chapter 20: Regular Expressions ...............................................................................................477
Chapter 21: Advanced sed ........................................................................................................497
Chapter 22: Advanced gawk ......................................................................................................527
Part IV: Working with Alternative Shells.................................................................. 555
Chapter 23: The zsh Shell..........................................................................................................557
Chapter 24: The tcsh Shell.........................................................................................................583
Chapter 25: The Korn Shell........................................................................................................ 611
Appendix A: Quick Guide to Bash Commands................................................................................ 633
Appendix B: Quick Guide to sed and gawk......................................................................................647
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Contents at a Glance
Introduction ................................................................................................................................ xxxi
Part I: The Linux Command Line .................................................................................1
Chapter 1: Starting with Linux Shells .......................................................................................... 3
Chapter 2: Getting to the Shell .................................................................................................. 17
Chapter 3: Basic Bash Shell Commands ....................................................................................... 37
Chapter 4: More Bash Shell Commands ........................................................................................ 69
Chapter 5: Understanding the Shell ........................................................................................... 93
Chapter 6: Using Linux Environment Variables ...........................................................................113
Chapter 7: Understanding Linux File Permissions .......................................................................137
Chapter 8: Managing Filesystems .............................................................................................. 161
Chapter 9: Installing Software ..................................................................................................181
Chapter 10: Working with Editors ..............................................................................................201
Part II: Shell Scripting Basics ................................................................................ 229
Chapter 11: Basic Script Building ..............................................................................................231
Chapter 12: Using Structured Commands ...................................................................................257
Chapter 13: More Structured Commands ....................................................................................291
Chapter 14: Handling User Input ...............................................................................................319
Chapter 15: Presenting Data .....................................................................................................347
Chapter 16: Script Control ........................................................................................................369
Part III: Advanced Shell Scripting ...........................................................................397
Chapter 17: Creating Functions .................................................................................................399
Chapter 18: Writing Scripts for Graphical Desktops .....................................................................421
Chapter 19: Introducing sed and gawk .......................................................................................449
Chapter 20: Regular Expressions ...............................................................................................477
Chapter 21: Advanced sed ........................................................................................................497
Chapter 22: Advanced gawk ......................................................................................................527
Part IV: Working with Alternative Shells.................................................................. 555
Chapter 23: The zsh Shell..........................................................................................................557
Chapter 24: The tcsh Shell.........................................................................................................583
Chapter 25: The Korn Shell........................................................................................................ 611
Appendix A: Quick Guide to Bash Commands................................................................................ 633
Appendix B: Quick Guide to sed and gawk......................................................................................647
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659