OS Manuals

/usr/bin/ipcrm

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running ipcrm --help (exit 0). permalink

Usage:
 ipcrm [options]
 ipcrm shm|msg|sem <id>...

Remove certain IPC resources.

Options:
 -m, --shmem-id <id>           remove shared memory segment by id
 -M, --shmem-key <key>         remove shared memory segment by key
     --posix-shmem <name>      remove POSIX shared memory segment by name
 -q, --queue-id <id>           remove message queue by id
 -Q, --queue-key <key>         remove message queue by key
     --posix-mqueue <name>     remove POSIX message queue by name
 -s, --semaphore-id <id>       remove semaphore by id
 -S, --semaphore-key <key>     remove semaphore by key
     --posix-semaphore <name>  remove POSIX semaphore by name
 -a, --all[=shm|pshm|msg|pmsg|sem|psem]
                               remove all (in the specified category)
 -v, --verbose                 explain what is being done

 -h, --help                 display this help
 -V, --version              display version

For more details see ipcrm(1).
Options (13)
OptionDescriptionSource
-m, --shmem-id idRemove the shared memory segment identified by shmid after the last detach is performed.help + man
-M, --shmem-key keyRemove the shared memory segment created with shmkey after the last detach is performed.help + man
--posix-shmem nameRemove the POSIX shared memory segment created with name.help + man
-q, --queue-id idRemove the message queue identified by msgid.help + man
-Q, --queue-key keyRemove the message queue created with msgkey.help + man
--posix-mqueue nameRemove the POSIX message queue created with name.help + man
-s, --semaphore-id idRemove the semaphore identified by semid.help + man
-S, --semaphore-key keyRemove the semaphore created with semkey.help + man
--posix-semaphore nameRemove the POSIX named semaphore created with name.help + man
-a, --all shm|pshm|msg|pmsg|sem|psemremove all (in the specified category)help + man
-v, --verboseexplain what is being donehelp + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.