Mastering Shell from Scratch
Tags
Summary
The book unfolds through nearly 300 examples, highlighting easily confused and highly practical points, with a chapter summary for review and accompanying instructional videos and other learning resources. The progressive arrangement makes it suitable both for systematic self-study and as a textbook for universities and training courses.
Editor's review
Who it's for
A good fit for
- 需要编写日常运维脚本的 Linux 系统管理员
- 刚接触 Linux、想系统掌握 Bash 的后端开发人员
- 把 Shell 课程作为教材的高校教师与相关专业学生
- 参加各类 Linux 培训班、需要配套讲义与练习的学员
Not a good fit for
- 零基础、完全没碰过命令行和 Linux 的读者,建议先补入门知识
- 想专攻 zsh、fish、PowerShell 等非 Bash Shell 的读者
- 期望直接读到高级内核编程或大规模自动化平台设计的人
Reading tips
- 先亲手把第 2 章的环境搭好,边读边敲,不要只做“阅读式学习”
- 把近 300 个示例按章节整理成自己的脚本库,改参数改写,观察输出差异
- 每章小结与习题不要跳过,能独立写出再来进入下一章
- 读完全书后用两个综合案例自己重写一遍,再对照书中实现找差距
About the publisher
Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.
Contents
- Part 1 Getting to Know Shell Programming
- Chapter 1 Shell Basics
- 1.1 Why Learn and Use Shell Programming
- 1.2 What Is Shell
- 1.2.1 The Origins of Shell
- 1.2.2 The Functions of Shell
- 1.2.3 Types of Shell
- 1.3 Shell as a Programming Language
- 1.3.1 Interactive Programs
- 1.3.2 Creating Scripts
- 1.3.3 Making Scripts Executable
- 1.4 Passing Arguments to Scripts
- 1.5 Your First Shell Program: Hello, Bash Shell!
- 1.5.1 Basic Elements of a Shell Script
- 1.5.2 Specifying the Command Interpreter
- 1.5.3 Comments and Style in Shell Scripts
- 1.5.4 How to Execute a Shell Program
- 1.5.5 Exit Status of Shell Programs
- Chapter 2 Setting Up a Shell Programming Environment
- 2.1 Setting Up on Different Operating Systems
- 2.2 Choosing an Editor
- 2.3 Configuring the System Environment
- Part 2 Shell Programming Fundamentals
- Chapter 3 Variables and Quoting
- Chapter 4 Conditional Tests and Judgment Statements
- Chapter 5 Loop Structures
- Chapter 6 Functions
- Chapter 7 Arrays
- Chapter 8 Regular Expressions
- Chapter 9 Basic Text Processing
- Chapter 10 The Stream Editor
- Chapter 11 The awk Tool
- Chapter 12 File Operations
- Chapter 13 Subshells and Process Handling
- Part 3 Shell Programming in Practice
- Chapter 14 Shell Script Debugging Techniques
- Chapter 15 Comprehensive Case Studies
FAQ
这本书讲的是哪种 Shell?
零基础能直接读这本吗?
第 1 版和第 2 版有什么区别?
书里的例子能直接用在工作中吗?
配套视频和资源怎么获取?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Zhang Chunxiao, about whom public information is limited, works across the collation of classical poetry, literary appreciation and contemporary critical theory. Seven of his titles are held in the collection, including editions and interpretations of Shen Zufen's poetry, studies of Tang seven-character quatrains and Song ci, as well as prose and collections of letters and diaries. Representative works such as The River-Crossing Poetry Collection, The Complete Works of Shen Zufen: A Brief Commentary on Tang Seven-Character Quatrains and the two-volume Master Classes on Tang and Song Poetry show his sustained engagement with the textual editing and popular explanation of classical verse. The Voice of the Other: Reflections on the Binary Structure of Postcolonial Theory turns to postcolonial criticism, revealing a range that moves from classical scholarship to theoretical inquiry. Overall, his writing centers on poetry appreciation and literary-historical compilation, combining scholarly organization with guidance for general readers.