TrumanWong

ipcs

Analyzing message queue shared memory and semaphores

Supplementary instructions

ipcs command is used to report the status of inter-process communication facilities in Linux. The information displayed includes message list, shared memory and semaphore information.

grammar

ipcs(option)

Options

Resource options

-a, --all show all (default)
-q, --queues message queue
-m, --shmems shared memory
-s, --semaphores semaphores

Output options

-t, --time display the last operation time
-p, --pid Display the PID of the creator and the last operator
-c, --creator Display userid, groupid of creator and owner
-l, --limits show limits on resources
-u, --summary Display a summary of the current status
--human display size in a friendly way (eg: 500K)
-b, --bytes Display size in bytes (affects `-l` option only)

General options

-i, --id <id> Display the resource with the specified ID
-h, --help Display help documentation and exit
-V, --version Display version information and exit

Example

ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x7401833d 2654208 root 600 4 0
0x00000000 3145729 root 600 4194304 9 dest
0x7401833c 2621442 root 600 4 0
0xd201012b 3080195 root 600 1720 2

Related commands

  • ipcrm: delete IPC resources
  • ipcmk: Create IPC resources