Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet or computer – no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera, scan the code below and download the Kindle app.
Follow the author
OK
The Linux Programming Interface: A Linux and UNIX System Programming Handbook
Purchase options and add-ons
The Linux Programming Interface is the definitive guide to the Linux and UNIX programming interface—the interface employed by nearly every application that runs on a Linux or UNIX system.
In this authoritative work, Linux programming expert Michael Kerrisk provides detailed descriptions of the system calls and library functions that you need in order to master the craft of system programming, and accompanies his explanations with clear, complete example programs.
You'll find descriptions of over 500 system calls and library functions, and more than 200 example programs, 88 tables, and 115 diagrams. You'll learn how to:
- Read and write files efficiently
- Use signals, clocks, and timers
- Create processes and execute programs
- Write secure programs
- Write multithreaded programs using POSIX threads
- Build and use shared libraries
- Perform interprocess communication using pipes, message queues, shared memory, and semaphores
- Write network applications with the sockets API
While The Linux Programming Interface covers a wealth of Linux-specific features, including epoll, inotify, and the /proc file system, its emphasis on UNIX standards (POSIX.1-2001/SUSv3 and POSIX.1-2008/SUSv4) makes it equally valuable to programmers working on other UNIX platforms.
The Linux Programming Interface is the most comprehensive single-volume work on the Linux and UNIX programming interface, and a book that's destined to become a new classic.
Praise for The Linux Programming Interface
"If I had to choose a single book to sit next to my machine when writing software for Linux, this would be it."Martin Landers, Software Engineer, Google
"This book, with its detailed descriptions and examples, contains everything you need to understand the details and nuances of the low-level programming APIs in Linux . . . no matter what the level of reader, there will be something to be learnt from this book."Mel Gorman, Author of Understanding the Linux Virtual Memory Manager
"Michael Kerrisk has not only written a great book about Linux programming and how it relates to various standards, but has also taken care that bugs he noticed got fixed and the man pages were (greatly) improved. In all three ways, he has made Linux programming easier. The in-depth treatment of topics in The Linux Programming Interface . . . makes it a must-have reference for both new and experienced Linux programmers."Andreas Jaeger, Program Manager, openSUSE, Novell
"Michael's inexhaustible determination to get his information right, and to express it clearly and concisely, has resulted in a strong reference source for programmers. While this work is targeted at Linux programmers, it will be of value to any programmer working in the UNIX/POSIX ecosystem."David Butenhof, Author of Programming with POSIX Threads and Contributor to the POSIX and UNIX Standards
". . . a very thorough—yet easy to read—explanation of UNIX system and network programming, with an emphasis on Linux systems. It's certainly a book I'd recommend to anybody wanting to get into UNIX programming (in general) or to experienced UNIX programmers wanting to know 'what's new' in the popular GNU/Linux system."Fernando Gont, Network Security Researcher, IETF Participant, and RFC Author
". . . encyclopedic in the breadth and depth of its coverage, and textbook-like in its wealth of worked examples and exercises. Each topic is clearly and comprehensively covered, from theory to hands-on working code. Professionals, students, educators, this is the Linux/UNIX reference that you have been waiting for."Anthony Robins, Associate Professor of Computer Science, The University of Otago
"I've been very impressed by the precision, the quality and the level of detail Michael Kerrisk put in his book. He is a great expert of Linux system calls and lets us share his knowledge and understanding of the Linux APIs."Christophe Blaess, Author of Programmation systeme en C sous Linux
". . . an essential resource for the serious or professional Linux and UNIX systems programmer. Michael Kerrisk covers the use of all the key APIs across both the Linux and UNIX system interfaces with clear descriptions and tutorial examples and stresses the importance and benefits of following standards such as the Single UNIX Specification and POSIX 1003.1."Andrew Josey, Director, Standards, The Open Group, and Chair of the POSIX 1003.1 Working Group
"What could be better than an encyclopedic reference to the Linux system, from the standpoint of the system programmer, written by none other than the maintainer of the man pages himself? The Linux Programming Interface is comprehensive and detailed. I firmly expect it to become an indispensable addition to my programming bookshelf."Bill Gallmeister, Author of POSIX.4 Programmer's Guide: Programming for the Real World
". . . the most complete and up-to-date book about Linux and UNIX system programming. If you're new to Linux system programming, if you're a UNIX veteran focused on portability while interested in learning the Linux way, or if you're simply looking for an excellent reference about the Linux programming interface, then Michael Kerrisk's book is definitely the companion you want on your bookshelf."Loic Domaigne, Chief Software Architect (Embedded), Corpuls.com
- ISBN-101593272200
- ISBN-13978-1593272203
- Edition1st
- PublisherNo Starch Press
- Publication dateOct. 1 2010
- LanguageEnglish
- Dimensions18.4 x 5.7 x 24.1 cm
- Print length1552 pages
Frequently bought together

Customers who viewed this item also viewed
- How Linux Works, 3rd Edition: What Every Superuser Should KnowPaperbackFREE Shipping by AmazonGet it by Monday, Nov 16
- System Programming in Linux: A Hands-On IntroductionHardcover$6.49 shippingGet it Dec 9 - 30Usually ships within 4 to 5 days
- UNIX and Linux System Administration HandbookPaperbackFREE Shipping by AmazonGet it by Monday, Nov 16
- Building Ontologies with Basic Formal OntologyPaperbackFREE Shipping by AmazonGet it by Monday, Nov 16
From the Publisher
The Linux Command Line
|
Wicked Cool Shell Scripts, 2nd Edition
|
How Linux Works, 2nd Edition
|
The Linux Programming Interface
|
|
|---|---|---|---|---|
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
|
| Customer Reviews |
4.7 out of 5 stars 566
|
4.6 out of 5 stars 213
|
4.7 out of 5 stars 767
|
4.8 out of 5 stars 754
|
| Price | $39.95$39.95 | $57.49$57.49 | $13.64$13.64 | $92.72$92.72 |
| Description: | A comprehensive introduction to the command line. From the first terminal commands to writing complete programs in Bash | 101 useful, customizable, and fun Bash shell scripts for Linux, OS X, and UNIX systems | An in-depth guide to the inner workings of the Linux system | The definitive guide to system and network programing in C for Linux and UNIX. Filled with detailed descriptions and complete example programs. From the Linux man-pages maintainer |
| User Experience Level: | All levels | All levels | Intermediate | Experienced |
Product description
Review
—Martin Landers, Software Engineer, Google
"Everything relating to the subject that I could reasonably think of is in the book, in a very thorough and maniacally complete yet enjoyably readable way."
—Federico Lucifredi, Slashdot.org
"This book, with its detailed descriptions and examples, contains everything you need to understand the details and nuances of the low-level programming APIs in Linux . . . no matter what the level of reader, there will be something to be learnt from this book."
—Mel Gorman, Author of Understanding the Linux Virtual Memory Manager
"Michael Kerrisk has not only written a great book about Linux programming and how it relates to various standards, but has also taken care that bugs he noticed got fixed and the man pages were (greatly) improved. In all three ways, he has made Linux programming easier. The in-depth treatment of topics in The Linux Programming Interface . . . makes it a must-have reference for both new and experienced Linux programmers."
—Andreas Jaeger, Program Manager, openSUSE, Novell
"Michael's inexhaustible determination to get his information right, and to express it clearly and concisely, has resulted in a strong reference source for programmers. While this work is targeted at Linux programmers, it will be of value to any programmer working in the UNIX/POSIX ecosystem."
—David Butenhof, Author of Programming with POSIX Threads and Contributor to the POSIX and UNIX Standards
". . . a very thorough—yet easy to read—explanation of UNIX system and network programming, with an emphasis on Linux systems. It's certainly a book I'd recommend to anybody wanting to get into UNIX programming (in general) or to experienced UNIX programmers wanting to know 'what's new' in the popular GNU/Linux system."
—Fernando Gont, Network Security Researcher, IETF Participant, and RFC Author
". . . encyclopedic in the breadth and depth of its coverage, and textbook-like in its wealth of worked examples and exercises. Each topic is clearly and comprehensively covered, from theory to hands-on working code. Professionals, students, educators, this is the Linux/UNIX reference that you have been waiting for."
—Anthony Robins, Associate Professor of Computer Science, The University of Otago
"I've been very impressed by the precision, the quality and the level of detail Michael Kerrisk put in his book. He is a great expert of Linux system calls and lets us share his knowledge and understanding of the Linux APIs."
—Christophe Blaess, Author of Programmation système en C sous Linux
". . . an essential resource for the serious or professional Linux and UNIX systems programmer. Michael Kerrisk covers the use of all the key APIs across both the Linux and UNIX system interfaces with clear descriptions and tutorial examples and stresses the importance and benefits of following standards such as the Single UNIX Specification and POSIX 1003.1."
—Andrew Josey, Director, Standards, The Open Group, and Chair of The POSIX 1003.1 Working Group
"What could be better than an encyclopedic reference to the Linux system, from the standpoint of the system programmer, written by none other than the maintainer of the man pages himself? The Linux Programming Interface is comprehensive and detailed. I firmly expect it to become an indispensable addition to my programming bookshelf."
—Bill Gallmeister, Author of POSIX.4 Programmer's Guide: Programming for the Real World
". . . the most complete and up-to-date book about Linux and UNIX system programming. If you're new to Linux system programming, if you're a UNIX veteran focused on portability while interested in learning the Linux way, or if you're simply looking for an excellent reference about the Linux programming interface, then Michael Kerrisk's book is definitely the companion you want on your bookshelf."
—Loïc Domaigné, Chief Software Architect (Embedded), Corpuls.com
"I found The Linux Programming Interface to be extremely useful and expect to return to it frequently. Anyone who has an interest in programming for Linux will likely feel the same way."
—Jake Edge, LWN.net
"Michael Kerrisk's new book [is] a thing of beauty. A book you're proud to just have on the shelf, but too useful to stay there."
—Serge Hallyn, Linux Kernel Developer
"If you think you don't need this book since you know everything already, that's what I thought too, and I was wrong."
—Bert Hubert, Netherlabs Computer Consulting
About the Author
Michael Kerrisk has been using and programming UNIX systems for more than 20 years, and has taught many week-long courses on UNIX system programming. Since 2004, he has maintained the man-pages project, which produces the manual pages describing the Linux kernel and glibc programming APIs. He has written or co-written more than 250 of the manual pages and is actively involved in the testing and design review of new Linux kernel-userspace interfaces. Michael lives with his family in Munich, Germany.
Product details
- Publisher : No Starch Press
- Publication date : Oct. 1 2010
- Edition : 1st
- Language : English
- Print length : 1552 pages
- ISBN-10 : 1593272200
- ISBN-13 : 978-1593272203
- Item weight : 2.44 kg
- Dimensions : 18.4 x 5.7 x 24.1 cm
- Best Sellers Rank: #87,521 in Books (See Top 100 in Books)
- #1 in Linux & Unix Programming
- #5 in Unix Operating System
- #8 in Operating Systems Textbooks
- Customer Reviews:
About the author

I'm a New Zealand-born, Munich-based programmer, trainer, and writer who has been programming and using various UNIX systems since 1987, and focusing primarily on Linux since the late 1990s. Since 2004, have been the maintainer of the Linux man-pages project (http://www.kernel.org/doc/man-pages/), which documents the Linux and GNU C library programming APIs. As part of that work, I'm actively involved in the Linux development community, providing testing and design review of changes to the Linux kernel-user-space API. I write and deliver training courses on Linux/UNIX system programming and related areas. Those courses draw on many years of teaching and programming experience and a long and intimate association with the UNIX and Linux programming APIs to create superlative training courses. For more details, see http://man7.org/training/.
Customer reviews
Customer Reviews, including Product Star Ratings, help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzes reviews to verify trustworthiness.
Learn more about how customer reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
Must have for Linux Admins & Programmers
Top reviews from Canada
- 5 out of 5 stars
An incredibly well written book
Reviewed in Canada on July 18, 2017I have read a lot of technical books (principally windows and c++ related) and really I have NEVER seen a technical book as well written as this one.
The book has all the quality I always wanted:
1) it must be thorough: after reading you shouldn't need to read other book or search the web to complete your comprehension: every info you need must be there.
2) it must be clear: there should never be any ambiguity in expressions or situation that requires you to test the info on specific example. You must be able to understand it on first the first reading
3) it must be a pleasant journey: the order of the information should match the normal flow of your thinking and interrogations. The author should guide you so that when you think: "I wonder what would happen in this different situation", the next paragraphs do address that interrogation you have.
Again this book does all this extremely well. There is simply no equivalent in the windows world. It makes me learning linux a very pleasant experience.
Many many thanks Mr Kerrisk
8 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Must have for Linux Admins & Programmers
Reviewed in Canada on April 11, 2024This is the best book for understanding how everything works in Linux OS.

This is the best book for understanding how everything works in Linux OS.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Excellent!!
Reviewed in Canada on October 4, 2020Arrivée en parfaite condition, j'ai seulement commencé la lecture et je suis loin de l'avoir fini mais pour l'instant tout est très bien expliqué et ce en détails!
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Programmer "must have"
Reviewed in Canada on January 17, 2018This massive hardcover book weighs in at 2.8 Kg (6.17 pounds) and is the most complete book I have ever seen on this topic. The title is slightly inaccurate because this book also covers various flavors of UNIX, as well as C programming in, and out of, a POSIX environment. Anyone learning to write C/C++ programs on Linux/UNIX this side of y2k should buy this book.
4 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Very good for linux programmers
Reviewed in Canada on February 25, 2023Very good
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Tome of Linux system information, well worth the buy.
Reviewed in Canada on June 8, 2019This book is a great resource and provides great explanations of the topics as well as examples that are practical.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
Great book! Very detailed
Reviewed in Canada on November 1, 2020The book is very much detailed. Totally loving it.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport - 5 out of 5 stars
unix
Reviewed in Canada on August 29, 2020I am enjoying studying unix, I have a few different books it is coming along, but I still have a long way to go. Bill Reid
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport
Top reviews from other countries
Abhishek Singh5 out of 5 starsWorth every penny.. page and print quality is superb
Reviewed in India on February 24, 2026I haven't read the book but I know this book is like bible for the linux world. So let me share other aspect of this book.
1.) I received the book in excellent condition except very minor damage from the bottom (refer last uploaded image). Initially when I have received the book I thought book is dameged from the front and sides but after cleaning with wipes it was all good 😊
2.) I have spent 5k+ on this book but trust me its worth. First of all, this is imported from US. Quality of pages and printing are superb. It has roughly 1.5k pages and 2.5 kg weight so price is justified.
Still i would suggest seller to use better packaging or to use bubble wrap if possible.



5 out of 5 starsWorth every penny.. page and print quality is superb
Reviewed in India on February 24, 2026I haven't read the book but I know this book is like bible for the linux world. So let me share other aspect of this book.
1.) I received the book in excellent condition except very minor damage from the bottom (refer last uploaded image). Initially when I have received the book I thought book is dameged from the front and sides but after cleaning with wipes it was all good 😊
2.) I have spent 5k+ on this book but trust me its worth. First of all, this is imported from US. Quality of pages and printing are superb. It has roughly 1.5k pages and 2.5 kg weight so price is justified.
Still i would suggest seller to use better packaging or to use bubble wrap if possible.
Sending feedback...Thanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport
Tim Havord5 out of 5 starsEverything you needed to know about Linux.
Reviewed in Australia on December 30, 2020East to read and comprehensive.
Sending feedback...Thanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport
Charles A5 out of 5 starsTLPI - A masterpiece, full of essential information. A real look under the hood!
Reviewed in the United States on August 11, 2013/**
* Name: Charles
* Age: 23
* Purchased: May, 2013
*/
Organization:
[0] -> The book is divided into chapters.
[1] -> Each chapter has multiple sections.
[2] -> Each chapter ends with a summary.
[3] -> At the very end of each chapter are exercises meant to reinforce what was learned in the chapter.
This is by far one of the best computer science texts I own. I did not purchase this book as a requirement for a class (though I am a student), but I did purchase it for 'personal consumption' and to further my knowledge of programming and grow as a unix/linux systems programmer.
I have read many computer science books by many different publishers and I have to admit I really enjoy the books that I own that were printed by No Starch press. I was turned on to this book by an interest in C/C++ socket programming and systems programming in general. I have a background in web development and had been programming in C for about a year when I purchased this book.
There is something to learn for everyone in this book, regardless of how many years or decades of experience you have. The book starts with a history of Unix, Linux, and standards, and then progresses into the great detail the inner workings of linux and unix.
One of my biggest disappointments with most other programming books is that the authors use bad analogies to explain how things work, or fail to explain how things work at all and only offer a shallow glimpse into the subject. Some authors seem to go back over their books adding stupid and unintelligent filler to try and make the book longer. This book is over 1500 pages and each page is jam packed with information. In fact, I'm sure there was information that was deemed 'not important' enough to make it into this book, and thus the book references how one can find more information on a topic.
I have so many good things to say about this book, I highly recommend it to anybody with an interest in linux systems programming. You will need an understanding of C programming to get through the book. If you are looking for a book on how to program in C, this is not the book. If you are a C programmer, or are learning C, and would like a book that shows you how to apply your programming knowledge to the linux and unix operating systems, this is a book for you.
This is a book for system admins, network admins, hackers, teachers and professors, students (high school, college, or graduate), makers, computer scientists, etc.
This is one book that I know I will carry with me everywhere. Or I will buy multiple copies so that I don't have to lug around this heavy, 1500+ pg hardcover book. Definitely a book you want at home, at the office, on the plain, in the car, in the bathroom, or anywhere else you can think of reading!
This is the most well written programming book that I own!
Sending feedback...Thanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport
Filipi5 out of 5 starsMuito conteúdo
Reviewed in Brazil on June 8, 2026Excelente livro, já estava lendo o pdf dele na internet por isso resolvi compra-lo, muito bom como referência.
Sending feedback...Thanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport
Cuicui5 out of 5 starsParfait
Reviewed in France on June 11, 2022Vraiment complet, je trouve toujours tout ce que j'ai besoin, et rapidement
Sending feedback...Thanks, we’ll investigate in the next few days.Sorry, We failed to report this review. Please try againWe'll check if this review meets our community guidelinesOpens in a new tab. If it doesn't, we'll remove it.
CancelReport














![QuickBooks Online for Beginners Bible Edition [2 Books in 1]: The Ultimate Fast Learning Guide for QBO, filled with Step-by-Step Illustrated Explanations, Practical Examples and Common Problem Solving](https://m.media-amazon.com/images/I/41nOzYRPvlL._AC_SR100,100_QL65_.jpg)

