ipcs [ -asmq ] [ -tclup ]
ipcs [ -smq ] -i id
-m 显示共享内存
-q 显示消息队列
-s 显示信号灯
-a 显示所有信息,默认为该选项
ipcs #显示所有信息,包括消息队列、共享内存、信号灯,与命令ipcs –a等价
$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
------ Semaphore Arrays --------
key semid owner perms nsems
------ Message Queues --------
key msqid owner perms used-bytes messages
$ipcs -m #显示共享内存信息
$ ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
$ipcs -s #显示信号灯信息
$ ipcs -s
------ Semaphore Arrays --------
key semid owner perms nsems
$ipcs -q #显示消息队列信息
$ ipcs -q
------ Message Queues --------
key msqid owner perms used-bytes messages
阅读(185) | 评论(0) | 转发(0) |