# 布莱恩·科尼汉

**布莱恩·科尼汉**（Brian Wilson Kernighan，生于1942年）是一位加拿大计算机科学家，在[贝尔实验室](https://www.edgepedia.org/zh/bell-labs)工作了三十年，期间参与了Unix操作系统的开发，为该系统创造了“Unix”这个名字，并与[丹尼斯·里奇](https://www.edgepedia.org/zh/dennis-ritchie)合著了《C程序设计语言》。自2000年起，他担任普林斯顿大学计算机科学教授，持有[威廉·O·贝克](https://www.edgepedia.org/zh/william-o-baker)'39教席，以其著作和工具深刻影响了程序员学习和实践技艺的方式而闻名。<sup>[1](https://www.cs.princeton.edu/people/profile/bwk)</sup><sup> • </sup><sup>[2](https://gist.github.com/MangaD/2cc54f710177adee9711fcd94e94fb31)</sup>

| 关键事实 | 详情 |
|---|---|
| 教育背景 | 1964年获多伦多大学应用科学学士学位；1969年获普林斯顿大学电气工程博士学位<sup>[3](https://www.informit.com/authors/bio/8CA9D210-A8BD-40CA-B946-574E0990109B)</sup> |
| 贝尔实验室生涯 | 在计算科学研究中心工作三十年；1981年至2000年任计算结构研究部主任<sup>[1](https://www.cs.princeton.edu/people/profile/bwk)</sup> |
| “Unix”之名 | 1970年过了好一阵才提出该名称，用里奇的话说，这是“对‘Multics’一词颇为狡黠的双关”<sup>[4](https://pdos.lcs.mit.edu/6.828/2005/readings/ritchie79evolution.html)</sup> |
| 《C程序设计语言》 | 1978年由普伦蒂斯·霍尔出版第一版，与丹尼斯·里奇合著；人称“K&R”；1988年出第二版<sup>[5](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)</sup><sup> • </sup><sup>[6](https://www.oreilly.com/library/view/c-programming-language/9780133086249/ch01.xhtml)</sup> |
| 创造的语言 | AWK（与阿尔·阿霍、彼得·温伯格合作，1979年）、AMPL（与罗伯特·富勒、大卫·盖伊合作，1985年设计）、RATFOR、eqn、pic<sup>[7](https://awk.dev/)</sup><sup> • </sup><sup>[8](https://ampl.com/about/)</sup><sup> • </sup><sup>[9](https://wiki.tuhs.org/doku.php?id=people%3Abrian_kernighan)</sup> |
| 荣誉 | USENIX终身成就奖（1997年）；美国国家工程院院士；美国艺术与科学院院士（2019年）；新泽西州研发委员会科技奖章（2024年）<sup>[10](https://www.usenix.org/legacy/directory/awards_old.html)</sup><sup> • </sup><sup>[5](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)</sup><sup> • </sup><sup>[11](https://www.cs.princeton.edu/news/brian-kernighan-recognized-groundbreaking-work-computer-programming-languages)</sup> |

## 教育背景与通往贝尔实验室之路

科尼汉在[多伦多大学](https://www.edgepedia.org/zh/university-of-toronto)学习工程学，1964年获应用科学学士学位，随后前往普林斯顿攻读电气工程研究生学位，1969年完成博士学位。<sup>[3](https://www.informit.com/authors/bio/8CA9D210-A8BD-40CA-B946-574E0990109B)</sup> 他在采访中称这条路纯属偶然：大学时第一次接触计算机，学了一点编程，后来经朋友帮忙，暑假到新泽西州默里山的贝尔实验室打工，那里位于普林斯顿以北，距普林斯顿约一小时车程。<sup>[12](https://www.cs.princeton.edu/news/digital-dawn-brian-kernighan-69-computing-princeton)</sup>

那几个夏天让他结识了一批因贝尔实验室退出Multics项目而离开的人。用他的话说，他们“无事可做，于是开始着手创建一个全新的编程环境，最终演变成了Unix。”毕业后他接受了贝尔实验室的职位，没有去别处面试，一待就是三十年。<sup>[13](https://archive.computerhistory.org/resources/access/text/2019/10/102740169-05-01-acc.pdf)</sup>

## Unix与命名

1969年，[肯·汤普森](https://www.edgepedia.org/zh/ken-thompson)利用一台闲置的PDP-7开始构建Unix，丹尼斯·里奇从旁协助；科尼汉早期的角色是用户、阐释者和工具贡献者，而非系统的架构师。<sup>[14](https://www.quut.com/c/bwk/index.html)</sup> 里奇撰写的系统历史记载，直到1970年已过了好一阵，科尼汉才建议使用“Unix”这个名字——这是对“Multics”的双关，将Multics对多路复用信息服务的雄心，替换为一个更小、更专注的系统。<sup>[4](https://pdos.lcs.mit.edu/6.828/2005/readings/ritchie79evolution.html)</sup>

科尼汉本人对该团队工作风格的描述强调，成员们是为自己造工具：“我们不为别人造工具……从历史上看，我们最擅长的是制造能解决自己面临问题的工具。”<sup>[15](https://dspinellis.github.io/oral-history-of-unix/frs122/unixhist/finalhis.htm)</sup>

## 软件工具与文本处理

**工具哲学。** Unix程序应当是小巧、可组合的过滤器——这一理念部分通过科尼汉的文字变得明确。管道概念的倡导者道格·麦克罗伊回忆说，在贝尔实验室圈子里，“软件工具”这个概念一直没有名字，直到科尼汉与P. J. 普劳格出版了《软件工具》；这本书为这一指导原则赋予了名称。科尼汉和[罗布·派克](https://www.edgepedia.org/zh/rob-pike)后来在《UNIX编程环境》中阐述了这一原则：每个程序只做一件事，系统的力量更多来自程序之间的关系，而非程序本身。<sup>[16](https://cscie26.dce.harvard.edu/~dce-lib113/reference/unix/unix2.html)</sup><sup> • </sup><sup>[17](https://docstore.mik.ua/orelly/unix3/upt/ch01_02.htm)</sup>

**文档准备。** 科尼汉与洛琳达·切里一起构建了eqn——一种排版数学公式的语言，他还编写了用于绘图的pic；乔·奥萨纳去世后，他制作了troff的设备无关版本及其后处理器。1989年《AT&T技术杂志》上的一篇回顾文章介绍了这套工具，其中还包括用于表格的tbl和用于图表的grap，这些程序被广泛使用，并在其他地方被部分仿效。<sup>[9](https://wiki.tuhs.org/doku.php?id=people%3Abrian_kernighan)</sup><sup> • </sup><sup>[18](https://collaborate.princeton.edu/en/publications/the-unix-system-document-preparation-tools-a-retrospective/)</sup>

## 小语言：AWK与AMPL

科尼汉反复设计他所谓的“小语言”——即领域特定语言，聚焦于单一应用场景，在那里效率不如自然的语法重要。<sup>[13](https://archive.computerhistory.org/resources/access/text/2019/10/102740169-05-01-acc.pdf)</sup>

**AWK。** 科尼汉与阿尔·阿霍、彼得·温伯格合作创造了awk，这门语言的名字正来自三人姓氏的首字母。它是一种模式扫描与处理语言，在1979年《软件：实践与经验》上的一篇论文中做了描述。《AWK编程语言》第一版于1988年问世，反映该语言演变的第二版最近也已出版。<sup>[7](https://awk.dev/)</sup><sup> • </sup><sup>[19](https://onlinelibrary.wiley.com/doi/abs/10.1002/spe.4380090403)</sup>

**AMPL。** 大约在1983年，西北大学的罗伯特·富勒利用学术休假在贝尔实验室访问，科尼汉与他和数值分析专家大卫·盖伊一起帮助设计了AMPL——一种用代数形式而非大型稀疏矩阵来表达数学优化问题的语言。他构建了第一个实现，并指出这是他的第一个C++程序。AMPL于1985年设计并实现；三位创始人在1993年因数学规划系统方面的著述获得ORSA/CSTS奖，2012年又作为重要代数建模语言之一的创始者获得INFORMS影响力奖。三人于2014年创立了AMPL优化公司。<sup>[13](https://archive.computerhistory.org/resources/access/text/2019/10/102740169-05-01-acc.pdf)</sup><sup> • </sup><sup>[8](https://ampl.com/about/)</sup>

## 著作

科尼汉的著作是他影响力的重要组成部分。《C程序设计语言》与丹尼斯·里奇合著，1978年由普伦蒂斯·霍尔首次出版，在程序员中被称为“K&R”，多年来实际上充当了该语言的事实标准，以至于标准之前的C至今仍被称为“K&R C”。1988年出版的第二版跟进了ANSI标准。科尼汉将这本书的成功部分归功于里奇的参考手册，部分归功于Unix传播的时机，而他至今仍说，说服里奇合著此书是他做过的最幸运的事。<sup>[5](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)</sup><sup> • </sup><sup>[20](https://www.keil.com/support/docs/1893.htm)</sup><sup> • </sup><sup>[13](https://archive.computerhistory.org/resources/access/text/2019/10/102740169-05-01-acc.pdf)</sup>

他的其他著作包括《软件工具》（与普劳格合著）、《UNIX编程环境》（与派克合著）、《AWK编程语言》（与阿霍、温伯格合著）、《Go程序设计语言》，以及面向普通读者的《理解数字世界》（[普林斯顿大学出版社](https://www.edgepedia.org/zh/princeton-university-press)，2017年）、《百万、十亿、万亿》（2018年），教人如何防范误导性的大数字，还有《UNIX：一段历史与回忆》（2019年）。<sup>[5](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)</sup><sup> • </sup><sup>[11](https://www.cs.princeton.edu/news/brian-kernighan-recognized-groundbreaking-work-computer-programming-languages)</sup><sup> • </sup><sup>[21](https://www.cs.princeton.edu/~bwk/)</sup>

## 普林斯顿与教学

2000年，贝尔实验室物是人非，科尼汉加入了普林斯顿大学计算机科学系；他描述说，他早年在贝尔实验室时的研究环境几乎没有发表论文或为电话公司服务的压力，而在公司分拆之后，这种环境让位于更短期的财务压力。<sup>[1](https://www.cs.princeton.edu/people/profile/bwk)</sup><sup> • </sup><sup>[22](https://www.dailyprincetonian.com/article/2025/04/princeton-features-profiles-professor-brian-kernighan-bell-labs)</sup> 在普林斯顿，他自2001年起担任本科教学主任，为非计算机专业学生开设COS 109：我们世界中的计算机等课程，并在大语言模型时代重新设计了入门作业——其中一次，他要求学生让AI模型完成一个实验，然后分析哪些地方做得好、哪些不好。<sup>[11](https://www.cs.princeton.edu/news/brian-kernighan-recognized-groundbreaking-work-computer-programming-languages)</sup><sup> • </sup><sup>[22](https://www.dailyprincetonian.com/article/2025/04/princeton-features-profiles-professor-brian-kernighan-bell-labs)</sup>

## 荣誉

USENIX于1997年授予科尼汉终身成就奖，表彰他“教育了我们所有人的著作、我们仍在使用着的工具，以及将语言作为人与机器之间桥梁的洞见。”<sup>[10](https://www.usenix.org/legacy/directory/awards_old.html)</sup> 他是美国国家工程院院士，并于2019年当选美国艺术与科学院院士。<sup>[5](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)</sup> 2024年，新泽西州研发委员会授予他科技奖章——该委员会的最高荣誉，以表彰他在开发C语言中的贡献。<sup>[11](https://www.cs.princeton.edu/news/brian-kernighan-recognized-groundbreaking-work-computer-programming-languages)</sup>

## References

1. [Brian Kernighan, Princeton University Computer Science faculty profile](https://www.cs.princeton.edu/people/profile/bwk)
2. [Turing Award Laureates and Influential Figures appendix (birth year 1942), GitHub gist](https://gist.github.com/MangaD/2cc54f710177adee9711fcd94e94fb31)
3. [Brian W. Kernighan author bio, InformIT](https://www.informit.com/authors/bio/8CA9D210-A8BD-40CA-B946-574E0990109B)
4. [Dennis Ritchie, "The Evolution of the Unix Time-sharing System" (1979)](https://pdos.lcs.mit.edu/6.828/2005/readings/ritchie79evolution.html)
5. [Computer scientist Kernighan elected to American Academy of Arts and Sciences, Princeton Engineering (April 18, 2019)](https://engineering.princeton.edu/news/2019/04/18/computer-scientist-kernighan-elected-american-academy-arts-and-sciences)
6. [The C Programming Language, 2nd Edition, O'Reilly](https://www.oreilly.com/library/view/c-programming-language/9780133086249/ch01.xhtml)
7. [The AWK Programming Language, Second Edition, awk.dev](https://awk.dev/)
8. [About AMPL, AMPL Optimization](https://ampl.com/about/)
9. [Brian Kernighan, Unix Heritage Wiki](https://wiki.tuhs.org/doku.php?id=people%3Abrian_kernighan)
10. [USENIX Lifetime Achievement Awards](https://www.usenix.org/legacy/directory/awards_old.html)
11. [Brian Kernighan recognized for groundbreaking work on computer programming languages, Princeton CS (August 15, 2024)](https://www.cs.princeton.edu/news/brian-kernighan-recognized-groundbreaking-work-computer-programming-languages)
12. [Digital Dawn: Brian Kernighan *69 on Computing at Princeton, Princeton CS](https://www.cs.princeton.edu/news/digital-dawn-brian-kernighan-69-computing-princeton)
13. [Oral History of Brian Kernighan, Computer History Museum (2017)](https://archive.computerhistory.org/resources/access/text/2019/10/102740169-05-01-acc.pdf)
14. [Brian W. Kernighan biographical page, quut.com](https://www.quut.com/c/bwk/index.html)
15. [An Oral History of Unix (Mahoney project mirror)](https://dspinellis.github.io/oral-history-of-unix/frs122/unixhist/finalhis.htm)
16. [Introduction of Pipes, Harvard CS261 reference page](https://cscie26.dce.harvard.edu/~dce-lib113/reference/unix/unix2.html)
17. [Unix Power Tools, 3rd Edition, Chapter 1](https://docstore.mik.ua/orelly/unix3/upt/ch01_02.htm)
18. [The Unix System Document Preparation Tools: A Retrospective, AT&T Technical Journal 68(4), 1989](https://collaborate.princeton.edu/en/publications/the-unix-system-document-preparation-tools-a-retrospective/)
19. [Aho, Kernighan, Weinberger (1979), "Awk — a pattern scanning and processing language," Software: Practice and Experience](https://onlinelibrary.wiley.com/doi/abs/10.1002/spe.4380090403)
20. [C: C Standards, Keil support note on K&R C](https://www.keil.com/support/docs/1893.htm)
21. [Brian Kernighan's Home Page, Princeton](https://www.cs.princeton.edu/~bwk/)
22. [Teaching keeps you young, or so says Professor Brian Kernighan, The Daily Princetonian (April 8, 2025)](https://www.dailyprincetonian.com/article/2025/04/princeton-features-profiles-professor-brian-kernighan-bell-labs)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 21, 2026; Oct 15, 2026 · Edited: Sep 21, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 工程师与计算机科学家 › 计算机科学家与人工智能研究者 › Researchers in computer systems, networking, security, databases, and programming languages

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/brian-kernighan

English original: https://www.edgepedia.org/brian-kernighan
