Have you ever wondered why Linux commands are so short and strange? Teletypewriters and Unix is the answer.
Let's face it, Linux commands are weird. Cat, mv, ls, pwd, they are all so short. Why this? The answer, as with many things about Linux, lies in its Unix origins.
The origin of the Linux commands
In the 1960s, when Unix was first developed, the main route to interactively communicate with computers was through teleprinters. These devices were essentially typewriters that could receive signals from other machines. Teletype used to be responsible for long-distance communication and telegraphy.
You can see one in action in this video:
These machines took up a lot of space, were noisy, and quite slow. This last problem was especially annoying when interacting with a computer. One way to make typing faster was to make the commands shorter.
These teleprinters were also known as TTYs and are the reason why Unix terminals are called. are known / dev / ttyX today.
Teletype and Linux today
Although we don't use teletypes with computers these days, they still remain in the design of Unix and Linux systems today.
In the 1970s, teleprinters began to give way to video terminals that displayed text on the screen instead of rolls of paper. In the 1980s, graphical interfaces such as those of the X Window System began to become popular.
Many older programs used the terminal to interact with the system. But how do these programs still work in the age of Windows managers and GUI? The answer is Pseudo terminal. This is system software that emulates the capabilities of a terminal in software. As for command line programs, they think they are talking to a teletype.
Modern Linux systems continue this design. The Linux file system lists pseudo-end devices as / dev / ptyX.
Linux continues the Unix tradition
The moral of the story is that Linux, as modern as it is, embodies ideas that are over 50 years old.
The ability of Unix-like systems to adapt to technological changes while maintaining compatibility with legacy software is one of the reasons technical users have relied on them for so long, and Linux is no exception. Even if Linux commands are short, you can make them even shorter with shell aliases.
Image source: Arnold Reinhold / Wikimedia Commons
Type less, do more with Linux command line aliases
Tired of typing long commands every time you open your Terminal? Use Linux command aliases to make it easier for you.
About the author
(30 articles published)
David is a freelance writer living in the Pacific Northwest but originally from the Bay Area. He has been passionate about technology since childhood. David's interests include reading, watching quality TV shows and movies, retro games, and collecting records.
By David Delony
Subscribe to our newsletter
Subscribe to our newsletter for tech tips, reviews, free e-books, and exclusive offers!
One more step …!
Please confirm your email address in the email we just sent you.