How do I remove a shared memory segment in Linux?

How do I remove a shared memory segment in Linux?
Answer
Examples
  1. To remove the shared memory segment associated with SharedMemoryID 18602 , enter: ipcrm -m 18602.
  2. To remove the message queue that was created with a key of 0xC1C2C3C3, enter: ipcrm -Q 0xC1C2C3C4.
 

Tìm kiếm

Back
Top