The Linux Command Line cover

The Linux Command Line

No rating yet
Chapters
40
ISBN
9787115551436

Tags

Summary

This book is the Chinese translation of the second edition of The Linux Command Line, offering a systematic exploration of Linux command-line usage and shell programming. The book is divided into four parts. Part one begins with the fundamental concepts of terminal emulators and the shell, introducing command-line input and editing, the file system structure, directory navigation, file and directory operations, accessing command help and manuals, redirection and pipes, shell expansions, advanced keyboard techniques, file permissions, and process management, helping readers build a solid foundation in the command line. Part two focuses on configuration and the environment, covering environment variables and startup files, the basics of the Vi editor, and how to customize the command prompt through configuration files. Part three turns to common tasks and essential tools, covering practical scenarios such as package management, storage media and file systems, networking, file searching, archiving and backup, regular expressions, text processing, formatted output, printing, and program compilation. Part four provides a comprehensive introduction to shell programming: from writing your first script, setting up a project, and top-down design, to flow control statements such as if, while/until, case, and for, reading keyboard input, handling positional parameters, string and numeric operations, arrays, and other commonly used commands, with dedicated discussion of troubleshooting and script robustness. The second edition has been updated for Bash 4.x and features improved scripting examples, making the content more relevant to the practical use of modern Linux distributions.

Editor's review

很多 Linux 入门书一上来就堆命令,读者背了一堆却不知道怎么用;这本书的顺序恰好相反:先讲清楚终端、Shell、文件系统和命令的结构,再逐层展开工具与脚本,读完能形成一套完整的知识框架。作者 William Shotts 是 LinuxCommand.org 的创建者,长期从事 Linux 教学与技术文档工作,行文平实,例子短小可复现,几乎每章都配有可动手的练习,不需要先装双系统也能跟上。第 2 版基于 Bash 4.x 全面修订,第四部分的脚本示例更贴近真实场景,并专门加入故障诊断与脚本健壮性的讨论,这是同类书中较少见的实用内容。全书 400 余页、四大部分,篇幅控制得当,既适合从零起步通读,也适合作为案头手册按需查阅。对于被图形界面养大、想真正掌握 Linux 的读者,它是一块扎实的垫脚石。

Who it's for

A good fit for

  • 刚接触 Linux、希望系统掌握终端的零基础读者
  • 需要日常运维服务器的初级系统管理员
  • 想用 Shell 脚本把重复工作自动化的开发者
  • 计算机专业学生,用作操作系统实验的配套读物

Not a good fit for

  • 想学 Linux 内核原理或驱动开发的读者
  • 只关心桌面发行版图形界面使用的普通用户
  • 已有多年运维经验、需要高级架构与调优内容的资深工程师

Reading tips

  1. 按四部分顺序通读,每章在虚拟机或 WSL 中动手敲一遍命令再进入下一章。
  2. 第一、二部分不必死记命令,重点理解 Shell 如何解析命令、重定向与管道的思路。
  3. 第四部分建议边读边写脚本,把书中示例改成自己工作中真实的小任务。
  4. 作为工具书保留在案头,遇到归档、文本处理、权限等问题时按目录直接查阅对应章节。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part 1: Learning the Shell
  2. Chapter 1: What Is the Shell?
  3. Chapter 2: Navigation
  4. Chapter 3: Exploring the Linux System
  5. Chapter 4: Manipulating Files and Directories
  6. Chapter 5: Working with Commands
  7. Chapter 6: Redirection
  8. Chapter 7: Seeing the World Through the Shell
  9. Chapter 8: Advanced Keyboard Tricks
  10. Chapter 9: Permissions
  11. Chapter 10: Processes
  12. Part 2: Configuration and the Environment
  13. Chapter 11: The Environment
  14. Chapter 12: A Gentle Introduction to Vi
  15. Chapter 13: Customizing the Prompt
  16. Part 3: Common Tasks and Essential Tools
  17. Chapter 14: Package Management
  18. Chapter 15: Storage Media
  19. Chapter 16: Networking
  20. Chapter 17: Searching for Files
  21. Chapter 18: Archiving and Backup
  22. Chapter 19: Regular Expressions
  23. Chapter 20: Text Processing
  24. Chapter 21: Formatting Output
  25. Chapter 22: Printing
  26. Chapter 23: Compiling Programs
  27. Part 4: Writing Shell Scripts
  28. Chapter 24: Writing Your First Shell Script
  29. Chapter 25: Starting a Project
  30. Chapter 26: Top-Down Design
  31. Chapter 27: Flow Control: Branching with if
  32. Chapter 28: Reading Keyboard Input
  33. Chapter 29: Flow Control: Looping with while and until
  34. Chapter 30: Troubleshooting
  35. Chapter 31: Flow Control: Branching with case
  36. Chapter 32: Positional Parameters
  37. Chapter 33: Flow Control: Looping with for
  38. Chapter 34: Strings and Numbers
  39. Chapter 35: Arrays
  40. Chapter 36: Other Commands

FAQ

这本书是第几版,和 2013 年的版本有什么区别?
这是 2021 年出版的第 2 版中译本,据原书第 2 版译出,译者为门佳、李伟,ISBN 9787115551436。相比 2013 年郭光伟、郝记生译本(ISBN 9787115307453),第 2 版基于 Bash 4.x 更新,并改进了第四部分的脚本示例与故障诊断内容。
零基础、完全没碰过 Linux 能读吗?
可以。本书正是面向从其他操作系统转向 Linux 的新用户,包括没有编程经验的人。开头从终端仿真器和最简单的命令讲起,循序渐进,不预设编程基础。
读这本书需要先安装 Linux 吗?
建议边读边练,但不一定要装双系统。可以在虚拟机、WSL 或任意一台 Linux 服务器上操作,重点是能打开一个 Shell 反复试验命令。
书里的内容会过时吗,适合现在的发行版吗?
命令行与 Shell 的核心知识相对稳定,第 2 版已更新到 Bash 4.x。个别涉及软件包管理、网络配置的命令在不同发行版中可能有差异,遇到时查阅对应发行版的文档即可。

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.

Top rated in the same category