POSIX
A standard that describes the commands, shell and programming interface a Unix-like operating system should offer.
In more detail
POSIX stands for Portable Operating System Interface. Software written to it works across Linux, macOS and other Unix-like systems.
Examples
The ansible.posix collection groups modules that rely on POSIX features shared by those systems.POSIX stands for Portable Operating System Interface. Because Linux and macOS both largely follow it, commands such as printf and sh behave the same way on both. Scripts written to it run on either without changes.Related terms
- Unix — A family of operating systems from the 1970s whose design ideas Linux and macOS both follow.
- ansible.posix — A collection of modules for POSIX systems such as Linux and Unix, for example to manage mounts, firewalls and access control lists.
- sh — The standard Unix shell name: whatever program /bin/sh points to, expected to behave as the POSIX standard describes.
- bashism — A bash-only feature, such as [[ ]], arrays, (( )) or process substitution, used in a script that claims to be POSIX sh.
- Amazon EFS — Amazon Elastic File System, a managed shared filesystem that many Linux instances, containers and functions can mount at once.
- EFS access point — An application-specific entry point to an EFS filesystem that fixes the user identity and root directory clients get.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
- exit code — A number a process returns when it finishes: 0 means success, anything else means something went wrong.
- signal — A short notification the kernel delivers to a process, such as please stop or stop now.
- printf — The command that prints text according to a format string, such as printf '%s\n' "$name".
Taught in
- Using Collections — Ansible Configuration Management at Scale
- The Unquoted Variable: Splitting And Globbing — Bash Scripting & Command Line Automation
- Arrays, And Why Dollar At Is Not Dollar Star — Bash Scripting & Command Line Automation
- Style That Prevents Bugs — Bash Scripting & Command Line Automation
- POSIX sh Versus Bash — Bash Scripting & Command Line Automation
- Elastic File System (EFS) — Cloud Infrastructure & Hyperscaler Architecture
- Commands, Logs, Exec And Exit Codes — Docker Architecture & Production Containers
- What A Kernel Does, And What It Refuses To Do — Linux Fundamentals & Systems Administration
- Close Phase & Signal Dispatch: Sockets & Teardown — Node.js Internals & Backend Services
- Encodings, Locales And Time Zones — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Graded On A Machine You Never Touched — RHCE in Ansible (EX294): Automate Red Hat Systems
- Exam Strategy: The First Fifteen Minutes And ansible-doc — RHCE in Ansible (EX294): Automate Red Hat Systems
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems
- Anatomy Of A Playbook: Plays, Tasks And Modules — RHCE in Ansible (EX294): Automate Red Hat Systems
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- RHEL System Roles: timesync And selinux From A Collection — RHCE in Ansible (EX294): Automate Red Hat Systems
- firewalld: Permanent, Immediate And The Reboot — RHCE in Ansible (EX294): Automate Red Hat Systems
- Storage: Partitions, Volume Groups And Volumes Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- File Systems And Mounts: mounted, present And UUIDs — RHCE in Ansible (EX294): Automate Red Hat Systems
- SELinux: Labels, Ports And Booleans That Persist — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: A Web Node From A Ticket — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: Storage Only Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 2: Real Machines And The Patterns That Fail — RHCE in Ansible (EX294): Automate Red Hat Systems