Urgent.News

What's breaking now, across thousands of outlets.

Tech

Unix pipes are over 50 years old, and they're still why the Linux terminal feels so powerful

The plumbing is old, but the pipes still work just fine.

Unix pipes are over 50 years old, and they're still why the Linux terminal feels so powerful

The humble pipe, an invention dating back to 1964, remains a crucial reason why the Linux terminal feels so powerful. Douglas McIlroy, a visionary department head at Bell Labs, faced a challenge when programs lacked the ability to naturally share data between them. He envisioned a system where programs could be chained like garden hose segments to massage data as needed.

This idea eventually led to the creation of the pipe() system call in 1973 by Ken Thompson, a co-creator of Unix. The pipe allowed data to flow through commands like a hose, making it easier to perform tasks linked together. The elegance of pipes was showcased in 1986 when Donald Knuth was asked to write a program to count and rank frequently used words in text.

Using pipes, McIlroy streamlined Knuth's ten-page Pascal code into a concise proposal that could be executed with just four words and a pipe. Today, pipes are still widely used in Linux, enabling users to perform complex tasks with minimal effort, such as finding the process ID of a specific service.

Written by urgent.news from XDA Developers's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at xda-developers.com →

More in Tech

More from Thursday 19 November →