用ipcs命令即可,效果如下:
:~> ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status 0x2369b4bc 3309575 oracle 640 7535067136 18------ Semaphore Arrays --------
key semid owner perms nsems 0xd5b0c6f8 1179650 oracle 640 154------ Message Queues --------
key msqid owner perms used-bytes messages