One-liner: how to remove the shared memory segments

 for i in `ipcs -m | awk '/0x0/ {print $2}'`
 do
  ipcrm -m $i
 done

Leave a Reply

Your email address will not be published. Required fields are marked *