按年被提到
20092016 · 18 次2026
开源书›系统与网络·No.51·简称 TAOUP

The Art of Unix Programming

UNIX 编程艺术
Eric S. Raymond

讲解 Unix 设计哲学、历史与软件设计原则的经典

免费阅读 ↗
被推荐 · 67 人首次 2009-10-06 · 最近 2026-10-15许可证 CC BY-ND 1.0 · 官网只有 http
67不同的人
67活跃月份
18有推荐的月份
89讨论串

Eric S. Raymond 总结 Unix 社区几十年积累下来的设计哲学,包括模块化、简洁、组合、文本接口等原则,并结合 Unix 的历史和各种工具说明这些决定背后的原因。书中以叙述和案例为主,没有习题,也涉及命令行程序的惯例、协议设计和与其他系统的对比。它更像一本讲设计思想的书,而不是 Unix 使用手册。

HN 为什么推荐它

HN 上的人推荐它是因为它把 Unix 哲学讲得最完整,解释了很多命令行惯例和设计取舍的来历,写命令行程序的人读了会有收获;有人建议买纸质版通读。

难度 3 / 5约 20 小时开放许可
适合谁

写命令行程序或想理解 Unix 设计思想的程序员

读之前最好知道
1Unix 命令行基础
2一门编程语言

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读讲 Unix 哲学的开头几章,把原则弄清楚
  2. 2历史章节可以当故事读,帮助理解设计取舍的背景
  3. 3写命令行程序时回头查阅相关章节
  4. 4与亲手使用 Unix 工具的实践结合着读

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐golwengaud · 2010-06

“ESR's /The Art of Unix Programming/ explains the philosophy of Unix: why things are the way they are.”

推荐它讲清 Unix 的哲学以及事物为何如此
Ask HN: How Can I Learn Programming From The Ground Up?原评论 ↗
推荐prostoalex · 2011-08

“ESR's "The Art of Unix Programming" has a good section on consistent default of command line options”

指出它有一节讲命令行选项默认值的一致性
Designing command-line interfaces原评论 ↗
推荐geofft · 2012-10

“Reading things like ESR's summary of the UNIX philosophy might also help -- much of the UNIX philosophy exists to manage complexity in a huge system.”

推荐读 ESR 对 Unix 哲学的总结,用来应对大系统的复杂度
I am a 14 year old programmer. I'm stuck.原评论 ↗
推荐chubot · 2014-11

“One of the best books on the Unix philosophy is "The Art of Unix Programming", which is available for free. (I recommend getting a hard copy and reading the whole thing.)”

称它是讲 Unix 哲学最好的书之一,建议买纸质版通读
Don't panic and keep forking Debian原评论 ↗
推荐brudgers · 2015-12

“The Art of Unix Programming [1] made me understand my experience living through the transition from MSDos to twenty years of Windows”

说它让自己理解了从 MSDos 到 Windows 的亲身经历
Ask HN: What are the best books that changed your life in 2015?原评论 ↗
推荐brudgers · 2016-03

“Raymond's The Art of Unix Programming is a good resource for understanding the design philosophy of Unix...and by extension Linux.”

推荐它理解 Unix 乃至 Linux 的设计哲学
Advanced Linux Programming – book with free PDF (2001)原评论 ↗
看全部 20 条 →
推荐chubot · 2016-06

“The design ideas originated with Unix. They were quite explicit, read this book: The Art of Unix Programming”

推荐读它了解源自 Unix 的明确设计思想
Doug McIlroy on Unix Taste (2014)原评论 ↗
推荐duncan_bayne · 2016-09

“please read The Art of UNIX Programming, which should have been called The Philosophy of UNIX:”

要求读它,称它其实该叫“Unix 哲学”
Appropriate Uses for SQLite原评论 ↗
推荐sigil · 2016-10

“if you're writing unix programs often, do yourself a favor and read all of TAOUP. It really helps crystallize the Unix Philosophy in a way that a grab bag of suggestions doesn't.”

劝常写 Unix 程序的人通读,能把 Unix 哲学讲透
Exploring CLI Best Practices原评论 ↗
推荐informatimago · 2017-01

“Read (链接) Then read: The Art of Unix Programming”

推荐先读前一个链接再读它,了解 Unix 工具如何组合
Ask HN: How are Unix tools composable?原评论 ↗
推荐pdkl95 · 2017-03

“it does do a good job covering the basic philosophy and some of the history of why certain design decisions were made.”

称它讲清了基本哲学和一些设计决策的历史
The Collapse of the Unix Philosophy原评论 ↗
推荐pdkl95 · 2017-03

“See "The Art Of Unix Programming" for a full explanation of the philosophy.”

指向它获得对 Unix 哲学的完整解释
The Collapse of the Unix Philosophy原评论 ↗
推荐oneeyedpigeon · 2017-07

“I'm still trying to achieve everything he advocates, but what I've managed so far has been extremely beneficial.”

说书中主张的原则让自己的代码结构受益匪浅
Ask HN: What books had the greatest effect on how you structure your code?原评论 ↗
推荐marttt · 2018-01

“For another short overview, there's also Eric S. Raymond's take on Plan 9 in "The Art of Unix Programming":”

推荐它里面 ESR 对 Plan 9 的简短概述
Introduction to OS Abstractions Using Plan 9 from Bell Labs (2007) [pdf]原评论 ↗
推荐vram22 · 2018-10

“The Art of Unix Programming by Eric Raymond is a good in-depth look at (not just) Unix CLI programs, covering both pros and cons”

推荐它深入讲命令行程序的利弊
12 Factor CLI Apps原评论 ↗
推荐cben · 2019-01

“But I found TAOUP articulated ideas I only learnt through osmosis.”

称它把自己只凭耳濡目染学到的想法讲明白了
For the Love of Pipes原评论 ↗
推荐peter5878 · 2020-04

“Eric S. Raymond also wrote a nice chapter on UNIX history in "The Art of Unix Programming": The Art of Unix Programming”

推荐它里面写得不错的 UNIX 历史一章
Ask HN: What are some great posts or articles about history of computing?原评论 ↗
推荐thomasbacklund · 2020-12

“I would very much recommend The Art of UNIX programming, by Eric S. Raymond [0]”

强烈推荐它,作为写好命令行程序的指南
CLI Guidelines – A guide to help you write better command-line programs原评论 ↗
推荐chubot · 2021-04

“Good book on this: (链接) Online for free: The Art of Unix Programming”

推荐它讲如何把 Python 脚本融入 shell 脚本,可免费读
How to do things safely in Bash (2018)原评论 ↗
推荐fuzztester · 2024-01

“I had read the book some time ago. It was interesting.”

说以前读过,觉得挺有意思
The Art of Unix Programming (2003)原评论 ↗