commands.sh

ipcrm

linux

Delete IPC (Inter-process Communication) resources.

More info →

Options (7)

-m, --shmem-idboolean

Delete a shared memory segment by ID

Example: ipcrm {{[-m|--shmem-id]}} {{shmem_id}}
-M, --shmem-keyboolean

Delete a shared memory segment by key

Example: ipcrm {{[-M|--shmem-key]}} {{shmem_key}}
-q, --queue-idboolean

Delete an IPC queue by ID

Example: ipcrm {{[-q|--queue-id]}} {{ipc_queue_id}}
-Q, --queue-keyboolean

Delete an IPC queue by key

Example: ipcrm {{[-Q|--queue-key]}} {{ipc_queue_key}}
-s, --semaphore-idboolean

Delete a semaphore by ID

Example: ipcrm {{[-s|--semaphore-id]}} {{semaphore_id}}
-S, --semaphore-keyboolean

Delete a semaphore by key

Example: ipcrm {{[-S|--semaphore-key]}} {{semaphore_key}}
-a, --allboolean

Delete all IPC resources

Example: ipcrm {{[-a|--all]}}

Examples (7)

Delete a shared memory segment by ID

ipcrm [-m|--shmem-id] shmem_id

Delete a shared memory segment by key

ipcrm [-M|--shmem-key] shmem_key

Delete an IPC queue by ID

ipcrm [-q|--queue-id] ipc_queue_id

Delete an IPC queue by key

ipcrm [-Q|--queue-key] ipc_queue_key

Delete a semaphore by ID

ipcrm [-s|--semaphore-id] semaphore_id

Delete a semaphore by key

ipcrm [-S|--semaphore-key] semaphore_key

Delete all IPC resources

ipcrm [-a|--all]
made by @shridhargupta | data from tldr-pages