Beginning Linux Programming (4th Edition) cover

Beginning Linux Programming (4th Edition)

No rating yet
Chapters
18
Series
Turing Programming Series · Linux/UNIX
ISBN
9787115228215

Tags

Summary

Beginning Linux Programming (4th Edition) is a classic introductory and advanced guide to program development on Linux and UNIX-style operating systems. Originally published in English under the title Beginning Linux Programming, it was co-authored by world-renowned Linux/UNIX experts Neil Matthew and Richard Stones, translated into Chinese by Chen Jian and Song Jianjian, and published by Posts & Telecom Press in June 2010 as part of the Turing Programming Series · Linux/UNIX. The book begins with setting up a Linux development environment, first introducing the standard Linux C library and the usage of various tools defined by Linux/UNIX standards, then successively covering shell programming, file operations and the Linux environment, terminal control and curses text-screen management, data management (DBM) and MySQL database storage, the development toolchain and debugging methods, and moving on to processes and signals, POSIX threads, interprocess communication (pipes, semaphores, shared memory, and message queues), and socket network programming, finally covering GNOME graphical interfaces with GTK+ and KDE graphical interfaces with Qt, and discussing the evolution of Linux standards. The book's approach is to first explain programming theory, then corroborate it with appropriate example programs and clear explanations; runnable code throughout the book lets readers master the use of Linux APIs through hands-on practice. The content is rigorously organized and broad in coverage, making it suitable both for Linux beginners as their first systematic programming guide and for intermediate and advanced programmers and university faculty and students in computer-related majors as a reference textbook.

Editor's review

这是一本在 Linux 程序设计领域流传近二十年、被反复推荐的经典教程。它的可贵之处在于“全”与“实”:从最基础的 Shell 脚本、文件与终端操作,一路写到线程、进程间通信、套接字网络编程,直到 GTK+/Qt 图形界面,把一名 Linux 开发者可能用到的技术栈几乎串成了一条完整的线。 作者 Neil Matthew 与 Richard Stones 是长期浸淫于 UNIX/Linux 的一线专家,书中不堆砌术语,而是先讲清原理,再用短小可运行的示例把 API 的用法演示出来,读者照着敲一遍就能理解系统调用与库函数的行为差别。第4版在内容组织上更为严谨,译者在术语与代码细节上也做了细致打磨,保留了原书的风格与准确性。 如果你只打算在 Linux 下认真读一本系统性程序设计书,它值得作为案头常备;若已能写 C 程序却对系统层“心里没底”,它更是一份清晰的补课清单。

Who it's for

A good fit for

  • 有 C 语言基础、希望在 Linux 下做系统开发的初学者
  • 需要系统梳理 Shell、文件、进程、线程、套接字等知识的开发者
  • 从事嵌入式、服务器或后端开发的工程师,用于查漏补缺
  • 高校计算机、软件工程专业讲授操作系统与系统编程课程的师生

Not a good fit for

  • 完全没有编程经验、需要从语法学起的零基础读者
  • 只想学 Linux 命令行日常操作、不做开发的运维新手
  • 寻求内核源码剖析或驱动开发深度内容的资深内核工程师

Reading tips

  1. 先在自己的机器上装好 Linux 与 GCC 工具链,边读边编译书中示例,不要只做纸面阅读。
  2. 可跳过暂不涉及的章节(如 GTK+/Qt、MySQL),先打通文件、进程、线程、套接字这条主线。
  3. 每章读完用一个小工具练手,例如写一个多线程下载器或简单的 socket 服务端,把知识点串起来。
  4. 遇到系统调用行为不确定时,随手用 man 手册对照阅读,养成查文档的习惯。

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. Chapter 1 Getting Started
  2. Chapter 2 Shell Programming
  3. Chapter 3 File Operations
  4. Chapter 4 The Linux Environment
  5. Chapter 5 Terminals
  6. Chapter 6 Managing Text-Based Screens with curses
  7. Chapter 7 Data Management
  8. Chapter 8 MySQL
  9. Chapter 9 Development Tools
  10. Chapter 10 Debugging
  11. Chapter 11 Processes and Signals
  12. Chapter 12 POSIX Threads
  13. Chapter 13 Interprocess Communication: Pipes
  14. Chapter 14 Semaphores, Shared Memory, and Message Queues
  15. Chapter 15 Sockets
  16. Chapter 16 GNOME Programming with GTK+
  17. Chapter 17 KDE Programming with Qt
  18. Chapter 18 The Linux Standards

FAQ

这本书需要什么基础才能读?
至少要有 C 语言基础,能看懂指针、结构体与函数调用;了解基本的命令行操作会更好,否则建议先补一点 Shell 与 Linux 常用命令再进入第2章之后的内容。
第4版和第3版有什么不同?
第4版在第3版基础上重新组织了内容,更新了对 Linux 标准演进、开发工具与数据库部分的叙述,并加强了进程、线程、进程间通信与图形界面等章节的示例。两者主题框架相近,新读者直接选第4版即可。
书名是《Linux程序设计》,和《Beginning Linux Programming》是同一本吗?
是。本书即 Wrox 出版的 Beginning Linux Programming 第4版的中文译本,由陈健、宋健建翻译,人民邮电出版社出版,属图灵程序设计丛书。
书里的示例能直接在现代发行版上跑吗?
大部分示例只依赖标准 C 库与常见系统调用,在主流发行版上编译运行问题不大;涉及 GTK+、Qt、MySQL 的部分可能需要额外安装开发包,版本差异处需按报错自行微调。

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