Effective Shell: A Practical User's Guide to Working Smarter on the Command Line / Эффективная командная оболочка: Практическое руководство пользователя по более эффективной работе с командной строкой
Год издания: 2025
Автор: Kerr Dave / Керр Дэйв
Издательство: No Starch Press, Inc.
ISBN: 978-1-7185-0415-8
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Количество страниц: 475
Описание: Master the tools. Build the workflow. Own the shell.
Effective Shell is the hands-on guide for developers who want to master the command line—not just to get around, but to build a fast, flexible, and portable development environment.
This isn’t a tour of shell commands. It’s a blueprint for creating workflows that scale across machines, teams, and projects. You’ll go from keystroke-level efficiency to composing powerful pipelines, writing reliable scripts, and automating common development tasks. Then you’ll take it further: managing your configuration with Git, customizing your shell setup, and working seamlessly across remote sessions using tools like Vim and tmux.
By the end, your shell won’t just be a tool; it’ll be an extension of your thinking.
You’ll learn how to:
Find, filter, and reshape data using grep, regular expressions, and shell pipelines
Write scripts that automate setup, configuration, and repetitive tasks
Create Python-based CLI tools to pull and process structured data
Manage your environment with Git and version-controlled dot files
Edit quickly with Vim and multitask efficiently using terminal multiplexers
Use AI tools to generate commands, debug faster, and enhance automation
Rather than prescribing a one-size-fits-all toolkit, Effective Shell teaches you the tools, practices, and strategies to build a shell environment that fits the way you work—efficient, portable, and entirely yours.
Whether you’re leveling up from the basics or refining your craft, this book will help you think clearly, automate confidently, and work more effectively in the shell.
Освоите инструменты. Создайте рабочий процесс. Используйте командную оболочку.
Эффективная командная оболочка - это практическое руководство для разработчиков, которые хотят освоить командную строку не только для того, чтобы работать с ней, но и для создания быстрой, гибкой и переносимой среды разработки.
Это не знакомство с командами командной строки. Это схема создания рабочих процессов, масштабируемых для разных машин, команд и проектов. Вы перейдете от эффективности на уровне нажатия клавиш к созданию мощных конвейеров, написанию надежных сценариев и автоматизации общих задач разработки. Затем вы продвинетесь дальше: будете управлять своей конфигурацией с помощью Git, настраивать настройки оболочки и без проблем работать в удаленных сеансах с помощью таких инструментов, как Vim и tmux.
В конечном итоге ваша оболочка станет не просто инструментом, а продолжением вашего мышления.
Вы узнаете, как:
Находите, фильтруйте и изменяйте данные с помощью grep, регулярных выражений и конвейеров
Пишите сценарии, автоматизирующие установку, конфигурирование и повторяющиеся задачи
Создавайте инструменты CLI на основе Python для извлечения и обработки структурированных данных
Управляйте своей средой с помощью Git и файлов dot с контролем версий
Быстрое редактирование с помощью Vim и эффективная работа в многозадачном режиме с помощью терминальных мультиплексоров
Используйте инструменты искусственного интеллекта для генерации команд, ускорения отладки и повышения уровня автоматизации
Вместо того чтобы рекомендовать универсальный набор инструментов, книга обучает вас инструментам, практикам и стратегиям создания среды, которая соответствует вашему способу работы - эффективной, портативной и полностью принадлежащей вам.
Независимо от того, повышаете ли вы уровень, начиная с азов, или совершенствуете свое мастерство, эта книга поможет вам ясно мыслить, уверенно автоматизировать и более эффективно работать.
Примеры страниц (скриншоты)
Оглавление
Acknowledgments . xxi
Introduction xxiii
PART I: CORE SKILLS . 1
Chapter 1: Flying on the Command Line 3
Chapter 2: Thinking in Pipelines 13
Chapter 3: Finding Files and Folders . 31
PART II: MANIPULATING TEXT AND STREAMS . 45
Chapter 4: Regular Expression Essentials . 47
Chapter 5: Getting to Grips with grep . 61
Chapter 6: Slicing and Dicing Text 71
Chapter 7: Advanced Text Manipulation with sed . 83
Chapter 8: Building Commands on the Fly . 99
PART III: SHELL SCRIPTING 107
Chapter 9: Shell Script Fundamentals 109
Chapter 10: Using Variables to Store, Read, and Manipulate Data . 121
Chapter 11: Mastering Conditional Logic 141
Chapter 12: Using Loops with Files and Folders 155
Chapter 13: Functions, Parameters, and Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . 173
Chapter 14: Useful Patterns for Shell Scripts . 189
x Brief Contents
PART IV: BUILDING YOUR TOOLKIT 205
Chapter 15: Configuring Your Shell . 207
Chapter 16: Customizing Your Command Prompt . 221
Chapter 17: Managing Your Dot Files . 237
Chapter 18: Controlling Changes with Git . 249
Chapter 19: Managing Remote Git Repositories and Sharing Dot Files 275
PART V: ADVANCED TECHNIQUES . 295
Chapter 20: Shell Expansion 297
Chapter 21: Alternatives to Shell Scripting . 313
Chapter 22: The Secure Shell . 327
Chapter 23: The Power of Terminal Editors . 343
Chapter 24: Mastering the Multiplexer 363
Afterword: Generative AI and the Shell 377
Appendix A: Setup 381
Appendix B: Shell Basics 393
Index . 421