It's been said that "graphical user interfaces make easy tasks easy, while command-line interfaces make difficult tasks possible." The Linux Command Line shows readers how to control their computers and accomplish these difficult tasks using Bash, the Linux shell. Designed for command-line users of all levels, the book takes readers from the first keystrokes to the process of writing powerful programs in the command line's native language. Along the way, the author explores basic commands and file system navigation, OS configuration, classic command-line programs, shell programming, and much more, making The Linux Command Line an essential guide for all Linux users who wish to exploit the full power of their systems.
BRIEF CONTENTS
Acknowledgments
Introduction
PART 1: LEARNING THE SHELL
Chapter 1: What Is the Shell?.......................................................................................................3
Chapter 2: Navigation................................................................................................................7
Chapter 3: Exploring the System.................................................................................................13
Chapter 4: Manipulating Files and Directories..............................................................................25
Chapter 5: Working with Commands..........................................................................................39
Chapter 6: Redirection..............................................................................................................49
Chapter 7: Seeing the World as the Shell Sees It..........................................................................59
Chapter 8: Advanced Keyboard Tricks........................................................................................69
Chapter 9: Permissions..............................................................................................................77
Chapter 10: Processes...............................................................................................................95
PART 2: CONFIGURATION AND THE ENVIRONMENT
Chapter 11: The Environment...................................................................................................109
Chapter 12: A Gentle Introduction to vi.....................................................................................121
Chapter 13: Customizing the Prompt.........................................................................................139
PART 3: COMMON TASKS AND ESSENTIAL TOOLS
Chapter 14: Package Management..........................................................................................149
Chapter 15: Storage Media.....................................................................................................159
Chapter 16: Networking.........................................................................................................175
Chapter 17: Searching for Files................................................................................................187
Chapter 18: Archiving and Backup...........................................................................................201
Chapter 19: Regular Expressions..............................................................................................215
Chapter 20: Text Processing....................................................................................................233
Chapter 21: Formatting Output.................................................................................................267
Chapter 22: Printing...............................................................................................................285
Chapter 23: Compiling Programs.............................................................................................297
PART 4: WRITING SHELL SCRIPTS
Chapter 24: Writing Your First Script........................................................................................309
Chapter 25: Starting a Project..................................................................................................315
Chapter 26: Top-Down Design.................................................................................................325
Chapter 27: Flow Control: Branching with if..............................................................................333
Chapter 28: Reading Keyboard Input........................................................................................347
Chapter 29: Flow Control: Looping with while and until..............................................................357
Chapter 30: Troubleshooting....................................................................................................363
Chapter 31: Flow Control: Branching with case.........................................................................375
Chapter 32: Positional Parameters............................................................................................381
Chapter 33: Flow Control: Looping with for...............................................................................393
Chapter 34: Strings and Numbers............................................................................................399
Chapter 35: Arrays.................................................................................................................415
|Chapter 36: Exotica................................................................................................................423
Description:
It's been said that "graphical user interfaces make easy tasks easy, while command-line interfaces make difficult tasks possible." The Linux Command Line shows readers how to control their computers and accomplish these difficult tasks using Bash, the Linux shell. Designed for command-line users of all levels, the book takes readers from the first keystrokes to the process of writing powerful programs in the command line's native language. Along the way, the author explores basic commands and file system navigation, OS configuration, classic command-line programs, shell programming, and much more, making The Linux Command Line an essential guide for all Linux users who wish to exploit the full power of their systems.
BRIEF CONTENTS
Acknowledgments
Introduction
PART 1: LEARNING THE SHELL
Chapter 1: What Is the Shell?.......................................................................................................3
Chapter 2: Navigation................................................................................................................7
Chapter 3: Exploring the System.................................................................................................13
Chapter 4: Manipulating Files and Directories..............................................................................25
Chapter 5: Working with Commands..........................................................................................39
Chapter 6: Redirection..............................................................................................................49
Chapter 7: Seeing the World as the Shell Sees It..........................................................................59
Chapter 8: Advanced Keyboard Tricks........................................................................................69
Chapter 9: Permissions..............................................................................................................77
Chapter 10: Processes...............................................................................................................95
PART 2: CONFIGURATION AND THE ENVIRONMENT
Chapter 11: The Environment...................................................................................................109
Chapter 12: A Gentle Introduction to vi.....................................................................................121
Chapter 13: Customizing the Prompt.........................................................................................139
PART 3: COMMON TASKS AND ESSENTIAL TOOLS
Chapter 14: Package Management..........................................................................................149
Chapter 15: Storage Media.....................................................................................................159
Chapter 16: Networking.........................................................................................................175
Chapter 17: Searching for Files................................................................................................187
Chapter 18: Archiving and Backup...........................................................................................201
Chapter 19: Regular Expressions..............................................................................................215
Chapter 20: Text Processing....................................................................................................233
Chapter 21: Formatting Output.................................................................................................267
Chapter 22: Printing...............................................................................................................285
Chapter 23: Compiling Programs.............................................................................................297
PART 4: WRITING SHELL SCRIPTS
Chapter 24: Writing Your First Script........................................................................................309
Chapter 25: Starting a Project..................................................................................................315
Chapter 26: Top-Down Design.................................................................................................325
Chapter 27: Flow Control: Branching with if..............................................................................333
Chapter 28: Reading Keyboard Input........................................................................................347
Chapter 29: Flow Control: Looping with while and until..............................................................357
Chapter 30: Troubleshooting....................................................................................................363
Chapter 31: Flow Control: Branching with case.........................................................................375
Chapter 32: Positional Parameters............................................................................................381
Chapter 33: Flow Control: Looping with for...............................................................................393
Chapter 34: Strings and Numbers............................................................................................399
Chapter 35: Arrays.................................................................................................................415
|Chapter 36: Exotica................................................................................................................423
Index.....................................................................................................................................433
T8HztgAACAAJ