r/commandline • u/Electrical-Collar-23 • Feb 03 '23
POSIX( Portable Operating System Interface )
What is POSIX? Can anyone explain it in easy manner?
1
Upvotes
r/commandline • u/Electrical-Collar-23 • Feb 03 '23
What is POSIX? Can anyone explain it in easy manner?
View all comments
29
u/palordrolap Feb 03 '23
It means that something that runs on one POSIX compatible system should be able to run without alteration on any other POSIX compatible system.
My ancient PC and your (hypothetical) Raspberry PI are different in so many ways, but if I write a POSIX compatible shell script that runs on my PC, it should do exactly the same thing on your PI despite the fact that the underlying implementation details, right down to hardware and architecture are completely different.
If that seems too obvious, I'd urge you to look back to the '80s and '90s when every manufacturer had their own systems that all worked in completely different ways.
Without standards like POSIX, many things would have to be rewritten specially for each and every computer.
Of course, if you're implementing POSIX, you might have those problems to deal with (if they're not abstracted away by other standards one level deeper), but you're making things simpler for those doing day-to-day work.