📄 ipcs.1
字号:
.\" SCCSID: @(#)ipcs.1 8.1 9/11/90.\" SCCSID: @(#)ipcs.1 8.1 9/11/90.TH ipcs 1.SH Nameipcs \- report interprocess communication facilities status.SH Syntax.Bipcs [\|\fIoptions\fR\|].SH Description.NX R "ipcs command".NX R "interprocess communication package" "reporting status".NX R "message queue" "reporting status".NX R "semaphore set" "reporting status".NX R "shared memory" "reporting status"The.Pn ipcscommand provides information about active,interprocess communication facilities,message queues, shared memory, and semaphoresthat are currently active in the system..SH Options.NXR "ipcs command" "options"The information is displayed in columns andis controlled by the following.IR options :.IP \fB\-m\fRDisplays information about active shared memory segments.IP \fB\-q\fR Displays information about active message queues.IP \fB\-s\fR Displays information about active semaphores.PPIf any of the options.B \-q,.B \-m,or.RB \-sare specified, information about only those indicated are printed.If none of these three is specified, information about all three areprinted..IP \fB\-a\fR Uses all print.IR options(shorthand notation for.B \-b, \-c, \-o, \-pand.BR \-t ).IP \fB\-b\fR Displays the biggest allowable size information (maximum number of bytes inmessages on queue for message queues, size of segments for sharedmemory, and number of semaphores in each set for semaphores) .IP \fB\-C\fR Uses the specified core file (next argument) in place of .PN /dev/kmem.IP \fB\-c\fR Displays creator's login name and group name .IP \fB\-N\fR o.3i Uses the specified .I namelist(next argument) in place of.PN /vmunix.IP \fB\-o\fR Displays the outstanding usage information (number of messages in queue, size of each and number of processes attached to shared memory segments).IP \fB\-p\fR Displays the process ID information (process ID of last process to send amessage and process ID of last process to receive a message on messagequeues and process ID of creating process and process ID of last processto attach or detach on shared memory segments) .IP \fB\-t\fR Displays all time statistics (time of the last control operation thatchanged the access permissions for all facilities, time of last.PN msgsndand last.PN msgrcvon message queues, last.PN shmatand last.PN shmdton shared memory, last .MS semop 2 on semaphores) .PPThe column headings and the meaning of the columns in an.PN ipcslisting are given below.The letters in parentheses indicate the.I optionsthat cause the corresponding heading to appear;.B allmeans that the heading always appears. .NXR "ipcs command" "column headings listed"Note that these.I optionsonly determine what information is provided for each facility; they do.I notdetermine which facilities are listed..TP 20T (all) Type of facility:.RS.TPqMessage queue.TPmShared memory segment.TPsSemaphore.RE.TP 20ID (all) The identifier for the facility entry..TP 20KEY (all)The key used as an argument to.PN msgget ,.PN semget ,or.PN shmgetto create the facility entry. Note: The key of a shared memorysegment is changed to IPC_PRIVATEwhen the segment has been removed until all processes attached to thesegment detach it..TP 20MODE (all)The facility access modes and flags..sp .5The mode consists of 11 characters.The first two characters are interpreted as follows:.RS.TPRIf the process is waiting on a.PN msgrcv ..TPSIf a process is waiting on a.PN msgsnd ..TPDIf the associated shared memory segment has been removed. It disappears when the last process attached to the segment detaches it..TPCIf the associated shared memory segment is to be clear when the firstattach is executed..fi.TP\-If the corresponding special flag is.I notset..RE.IPThe next 9 characters are interpreted as three sets of three bits each.The first set refers to the owner's permissions; the next, topermissions of others in the user-group of the facility entry; and thelast to all others. Within each set, the first character indicatespermission to write or alter the facility entry, and the last characteris currently unused..sp .5The permissions are indicated as follows:.RS.TPrIf read permission is granted.TPwIf write permission is granted.TPaIf alter permission is granted.fi.TP\-If the indicated permission is.I notgranted.RE.TP 20OWNER (all) The login name of the owner of the facility entry..TP 20GROUP (all) The group name of the group of the owner of the facility entry..TP 20CREATOR (a,c)The login name of the creator of the facility entry..TP 20CGROUP (a,c)The group name of the group of the creator of the facility entry..TP 20CBYTES (a,o)The number of bytes in messages currently outstanding on the associatedmessage queue..TP 20QNUM (a,o)The number of messages currentlyoutstanding on the associated message queue..TP 20QBYTES (a,b)The maximum number of bytes allowed in messages outstandingon the associated message queue..TP 20LSPID (a,p)The process ID of the last process to send a message to the associatedqueue..TP 20LRPID (a,p)The process ID of the last processto receive a message from the associatedqueue..TP 20STIME (a,t)The time the last message was sent to the associated queue..TP 20RTIME (a,t)The time the last message was received from the associated queue..TP 20CTIME (a,t)The time the associated entry was created or changed..TP 20NATTCH (a,o)The number of processes attached to the associated shared memorysegment..TP 20SEGSZ (a,b)The size of the associated shared memory segment..TP 20CPID (a,p)The process ID of the creator of the shared memory entry..TP 20LPID (a,p)The process ID of the last process to attach or detach the shared memorysegment..TP 20ATIME (a,t)The time the last attach was completed to the associated shared memorysegment..TP 20DTIME (a,t)The time the last detach was completed on the associated shared memorysegment..TP 20NSEMS (a,b)The number of semaphores in the set associated with the semaphoreentry..TP 20OTIME (a,t)The time the last semaphore operation was completed on the setassociated with the semaphore entry..SH RestrictionsThings can change while.PN ipcsis running. The picture it gives is only a close approximation toreality..SH Files.nf/vmunix system namelist/dev/kmem memory/etc/passwd user names/etc/group group names.fi.SH See Alsoipcrm(2), msgop(2), semop(2), shmop(2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -