commands

ipcs — Inspect System V IPC facilities

Report System V shared memory segments, message queues or semaphore arrays visible in the applicable IPC namespace. It does not list anonymous pipes or POSIX IPC objects. The example checks the installed tool version only; no live IPC inventory is collected. Use a fresh private workspace; No production workload is required.

Formal Syntax & Structure

linux syntaxlinux
ipcs [-m|-q|-s]

Parameters & Attributes

NameTypeDescription
-moptionShared memory segments
-qoptionMessage queues
-soptionSemaphore arrays
--versionoptionReport version

Return Value

exit status and output

Prints visible System V IPC objects of the selected type, while --version prints tool identification only. A successful version query does not establish access to IPC objects or their absence.

Working Example

Example Snippetlinux
ipcs --version | grep -q 'util-linux' && printf 'ipcs version reported\n'
Linux Reference