Open In App

‘IPCS’ command in Linux with examples

ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default, it shows information about all three resources: shared memory segments, message queues, and semaphore arrays.
Without options, the information shall be written in short format for message queues, shared memory segments, and semaphore sets that are currently active in the system. Otherwise, the information that is displayed is controlled by the options specified.

Options :



Examples on IPCS command:

1: To list all the IPC facility



# ipcs -a : It provides details about message queue, semaphore and shared memory.


All the IPC facility has unique key and identifier, which is used to identify an IPC facility.

2: To list all the Message Queue

$ ipcs -q : It lists only message queues for which the current process has read access.


3. To list all the Semaphores

# ipcs -s : To list the accessible semaphores.


4. To list all the Shared Memory

# ipcs -m : To lists the shared memories.


5. To get the detailed information about an IPC facility

# ipcs -m -i 425984 : To detailed information about an ipc facility(here for id-425984).

6. To lists the Limits for IPC facility

# ipcs -m -l : To get the system limits for each ipc facility.

# ipcs -l : To get the limits for all three IPC facilities.


7. To list Creator and Owner Details for IPC Facility

# ipcs -m -c : To list creator userid and groupid and owner userid and group id.

8. To get the process ids that accessed IPC facility recently

# ipcs -m -p : To displays creator id, and process id which accessed the corresponding ipc facility very recently.

9. To get the last Accessed Time

# ipcs -s -t : To get the last operation time in each ipc facility.


10. To get the status of current usage

# ipcs -u : To display current usage for all the IPC facility.

Reference: IPCS Linux Manual Page

Article Tags :