6.19. 程序間通訊:ipcs

指令 ipcs 可產生一份使用中的 IPC 資源清單:

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 58261504   tester    600        393216     2          dest
0x00000000 58294273   tester    600        196608     2          dest
0x00000000 83886083   tester    666        43264      2
0x00000000 83951622   tester    666        192000     2
0x00000000 83984391   tester    666        282464     2
0x00000000 84738056   root      644        151552     2          dest

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x4d038abf 0          tester    600        8

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages