ipcs :显示进程通讯的信息
范例1: 显示进程通信的状态
[root@lx138.com ~]# ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 65536 root 644 790528 2 dest
0x00000000 229377 root 777 393216 2 dest
------ Semaphore Arrays --------
key semid owner perms nsems
------ Message Queues --------
key msqid owner perms used-bytes messages
[root@lx138.com ~]#
范例2: 显示共享内存信息
[root@lx138.com ~]# ipcs -m -t
------ Shared Memory Attach/Detach/Change Times --------
shmid owner attached detached changed
65536 root Apr 9 20:17:19 Apr 9 20:17:19 Apr 9 20:17:18
229377 root Apr 9 20:17:29 Not set Apr 9 20:17:28
[root@lx138.com ~]#