ipcrm command in Linux with examples (original) (raw)

Last Updated : 11 Jul, 2025

**ipcrm command in Linux is used to remove some IPC(Inter-Process Communication) resources. It eliminates the IPC objects and their associated data structure form the system. One must be a creator or superuser or the owner of the object in order to remove these objects. There are _three types of System V IPC objects i.e. _semaphores,_shared memory, and _message queues.

**Note:

When all the currently attached processes will remove the object from their virtual address space then only shared memory object can be removed.

**Syntax:

ipcrm [options]

_or

ipcrm {shm|msg|sem} id...

**Options:

ipcrm-1-660x413

ipcrm-2-660x413