ipcrm1
Remove the specified message queues, semaphore sets, and shared segments
Usage
ipcrm [-W]
[-v]
[-q
msqid]
[-m
shmid]
[-s
semid]
[-Q
msgkey]
[-M
shmkey]
[-S
semkey] ...
Overview
The ipcrm utility removes the specified message queues, semaphores and shared memory segments. These System V IPC objects can be specified by their creation ID or any associated key.
The following options are generic:
-
-v -
If specified once with -W or with -1 for an object, it will show all removed objects. If specified twice with -W or with -1 for an objects, it will show all removed objects and all failed removals.
-
-W -
Try to wipe all specified message queues, semaphores and shared memory segments.
The following options are used to specify which IPC objects will be removed. Any number and combination of these options can be used:
-
-q msqid -
Remove the message queue associated with the ID msqid from the system.
-
-m shmid -
Mark the shared memory segment associated with ID shmid for removal. This marked segment will be destroyed after the last detach.
-
-s semid -
Remove the semaphore set associated with ID semid from the system.
-
-Q msgkey -
Remove the message queue associated with key msgkey from the system.
-
-M shmkey -
Mark the shared memory segment associated with key shmkey for removal. This marked segment will be destroyed after the last detach.
-
-S semkey -
Remove the semaphore set associated with key semkey from the system.
The identifiers and keys associated with these System V IPC objects can be determined by using ipcs(1). If the identifier or the key is -1, it will remove all these objects.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 48 times.
- 2.0.5
- 2.1.5–2.2.2
- 2.2.5–2.2.8
- 2.2.9
- 3.0–3.2
- 3.3–3.4
- 3.5–3.5.1
- 4.0
- 4.1–4.2
- 4.3
- 4.4–4.6.2
- 4.7
- 4.8–4.11
- 5.0
- 5.1–5.2.1
- 5.3–6.3
- 6.4
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
- 9.0
- 9.1
- 9.2
- 9.3
- 10.0
- 10.1
- 10.2
- 10.3
- 10.4
- 11.0
- 11.1
- 11.2
- 11.3
- 11.4
- 12.0
- 12.1
- 12.2
- 12.3
- 12.4
- 13.0–13.2
- 13.3–15.1
- 16.0
-W since FreeBSD 7.1-RELEASE;
-v since FreeBSD 7.1-RELEASE;
-y since FreeBSD 7.1-RELEASE.