Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ipcs

Show information on System V IPC facilities.

Synopsis

ipcs [-m] [-q] [-s] [-a]
ipcs -l
ipcs -u
ipcs -i <id> {-m|-q|-s}

Operation

Reads /proc/sysvipc/{shm,msg,sem} to display information about active System V IPC resources.

Inputs

SourcePurpose
/proc/sysvipc/shmShared memory segments
/proc/sysvipc/msgMessage queues
/proc/sysvipc/semSemaphore arrays
/proc/sys/kernel/shm*Shared memory limits
/proc/sys/kernel/msg*Message queue limits
/proc/sys/kernel/semSemaphore limits

Command-line options

OptionDescription
-m, --shmemsShow shared memory segments
-q, --queuesShow message queues
-s, --semaphoresShow semaphore arrays
-a, --allShow all three (default)
-l, --limitsShow system resource limits
-u, --summaryShow usage summary
-c, --creatorShow creator and owner
-p, --pidShow PIDs of creator and last operator
-t, --timeShow time information
-i, --id <id>Show details for one resource (with -m/-q/-s)
-b, --bytesShow sizes in bytes
-h, --helpDisplay help
-V, --versionDisplay version

Exit codes

CodeMeaning
0Success
1Failure

Not yet implemented

  • -i <id> single resource detail view
  • -c creator/owner view
  • -p PID view
  • -t time view
  • --human human-readable sizes