]>
Commit | Line | Data |
---|---|---|
6dbe3af9 KZ |
1 | .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) |
2 | .\" May be distributed under the GNU General Public License | |
d179d019 | 3 | .TH IPCS "1" "July 2014" "util-linux" "User Commands" |
6dbe3af9 | 4 | .SH NAME |
d179d019 | 5 | ipcs \- show information on IPC facilities |
6dbe3af9 | 6 | .SH SYNOPSIS |
71d87029 | 7 | .B ipcs |
d179d019 | 8 | [options] |
6dbe3af9 KZ |
9 | .SH DESCRIPTION |
10 | .B ipcs | |
ae4ab160 | 11 | shows information on inter-process communication facilities. |
d179d019 BS |
12 | By default it shows information about all three resources: |
13 | shared memory segments, message queues, and semaphore arrays. | |
5ccc85be | 14 | .SH OPTIONS |
6dbe3af9 | 15 | .TP |
5ccc85be | 16 | \fB\-i\fR, \fB\-\-id\fR \fIid\fR |
d179d019 | 17 | Show full details on just the one resource element identified by |
5ccc85be | 18 | .IR id . |
d179d019 BS |
19 | This option needs to be combined with one of the three resource options: |
20 | .BR \-m , | |
21 | .BR \-q " or" | |
22 | .BR \-s . | |
6dbe3af9 | 23 | .TP |
5ccc85be | 24 | \fB\-h\fR, \fB\-\-help\fR |
b4362b6f | 25 | Display help text and exit. |
6dbe3af9 | 26 | .TP |
5ccc85be | 27 | \fB\-V\fR, \fB\-\-version\fR |
d38a30a3 BS |
28 | Display version information and exit. |
29 | .SS "Resource options" | |
6dbe3af9 | 30 | .TP |
d38a30a3 BS |
31 | \fB\-m\fR, \fB\-\-shmems\fR |
32 | Write information about active shared memory segments. | |
33 | .TP | |
d179d019 BS |
34 | \fB\-q\fR, \fB\-\-queues\fR |
35 | Write information about active message queues. | |
36 | .TP | |
5ccc85be SK |
37 | \fB\-s\fR, \fB\-\-semaphores\fR |
38 | Write information about active semaphore sets. | |
6dbe3af9 | 39 | .TP |
5ccc85be | 40 | \fB\-a\fR, \fB\-\-all\fR |
d38a30a3 BS |
41 | Write information about all three resources (default). |
42 | .SS "Output formats" | |
43 | Of these options only one takes effect: the last one specified. | |
44 | .TP | |
45 | \fB\-c\fR, \fB\-\-creator\fR | |
46 | Show creator and owner. | |
47 | .TP | |
48 | \fB\-l\fR, \fB\-\-limits\fR | |
49 | Show resource limits. | |
50 | .TP | |
51 | \fB\-p\fR, \fB\-\-pid\fR | |
52 | Show PIDs of creator and last operator. | |
6dbe3af9 | 53 | .TP |
5ccc85be | 54 | \fB\-t\fR, \fB\-\-time\fR |
d38a30a3 BS |
55 | Write time information. The time of the last control operation that changed |
56 | the access permissions for all facilities, the time of the last | |
a7bbc2f3 | 57 | .BR msgsnd (2) |
5ccc85be | 58 | and |
a7bbc2f3 | 59 | .BR msgrcv (2) |
d38a30a3 | 60 | operations on message queues, the time of the last |
a7bbc2f3 | 61 | .BR shmat (2) |
5ccc85be | 62 | and |
a7bbc2f3 | 63 | .BR shmdt (2) |
d38a30a3 | 64 | operations on shared memory, and the time of the last |
a7bbc2f3 | 65 | .BR semop (2) |
5ccc85be | 66 | operation on semaphores. |
6dbe3af9 | 67 | .TP |
5ccc85be SK |
68 | \fB\-u\fR, \fB\-\-summary\fR |
69 | Show status summary. | |
d38a30a3 BS |
70 | .SS "Representation" |
71 | These affect only the \fB\-l\fR (\fB\-\-limits\fR) option. | |
19b7b517 SK |
72 | .TP |
73 | \fB\-b\fR, \fB\-\-bytes\fR | |
74 | Print sizes in bytes. | |
d38a30a3 BS |
75 | .TP |
76 | .B \-\-human | |
77 | Print sizes in human-readable format. | |
6dd6d868 KZ |
78 | .SH CONFORMING TO |
79 | The Linux ipcs utility is not fully compatible to the POSIX ipcs utility. | |
d38a30a3 BS |
80 | The Linux version does not support the POSIX |
81 | .BR \-a , | |
6dd6d868 KZ |
82 | .B \-b |
83 | and | |
84 | .B \-o | |
85 | options, but does support the | |
86 | .B \-l | |
87 | and | |
88 | .B \-u | |
d38a30a3 BS |
89 | options not defined by POSIX. A portable application shall not use the |
90 | .BR \-a , | |
71d87029 PB |
91 | .BR \-b , |
92 | .BR \-o , | |
93 | .BR \-l , | |
6dd6d868 | 94 | and |
71d87029 PB |
95 | .B \-u |
96 | options. | |
67e63c12 MK |
97 | .SH NOTES |
98 | The current implementation of | |
99 | .B ipcs | |
100 | obtains information about available IPC resources by parsing the files in | |
101 | .IR /proc/sysvipc . | |
102 | Before util-linux version v2.23, an alternate mechanism was used: the | |
103 | .BR IPC_STAT | |
104 | command of | |
105 | .BR msgctl (2), | |
106 | .BR semctl (2), | |
107 | and | |
108 | .BR shmctl (2). | |
109 | This mechanism is also used in later util-linux versions in the case where | |
110 | .I /proc | |
111 | is unavailable. | |
112 | A limitation of the | |
113 | .B IPC_STAT | |
114 | mechanism is that it can only be used to retrieve information about | |
115 | IPC resources for which the user has read permission. | |
a8d0d330 | 116 | .SH AUTHORS |
5ccc85be SK |
117 | .UR balasub@cis.ohio-state.edu |
118 | Krishna Balasubramanian | |
119 | .UE | |
ade04bb8 MK |
120 | .SH SEE ALSO |
121 | .BR ipcmk (1), | |
122 | .BR ipcrm (1), | |
123 | .BR msgrcv (2), | |
124 | .BR msgsnd (2), | |
125 | .BR semget (2), | |
126 | .BR semop (2), | |
127 | .BR shmat (2), | |
128 | .BR shmdt (2), | |
fdd6a44f MK |
129 | .BR shmget (2), |
130 | .BR sysvipc (7) | |
86d62711 | 131 | .SH AVAILABILITY |
601d12fb | 132 | The ipcs command is part of the util-linux package and is available from |
d673b74e | 133 | .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/ |
5ccc85be SK |
134 | Linux Kernel Archive |
135 | .UE . |