]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/ipcs.1
Manual pages: ipcmk.1, ipcrm.1, ipcs.1, lsipc.1: SEE ALSO: add sysvipc(7)
[thirdparty/util-linux.git] / sys-utils / ipcs.1
CommitLineData
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 5ipcs \- 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 11shows information on inter-process communication facilities.
d179d019
BS
12By default it shows information about all three resources:
13shared 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 17Show full details on just the one resource element identified by
5ccc85be 18.IR id .
d179d019
BS
19This 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 25Display help text and exit.
6dbe3af9 26.TP
5ccc85be 27\fB\-V\fR, \fB\-\-version\fR
d38a30a3
BS
28Display version information and exit.
29.SS "Resource options"
6dbe3af9 30.TP
d38a30a3
BS
31\fB\-m\fR, \fB\-\-shmems\fR
32Write information about active shared memory segments.
33.TP
d179d019
BS
34\fB\-q\fR, \fB\-\-queues\fR
35Write information about active message queues.
36.TP
5ccc85be
SK
37\fB\-s\fR, \fB\-\-semaphores\fR
38Write information about active semaphore sets.
6dbe3af9 39.TP
5ccc85be 40\fB\-a\fR, \fB\-\-all\fR
d38a30a3
BS
41Write information about all three resources (default).
42.SS "Output formats"
43Of these options only one takes effect: the last one specified.
44.TP
45\fB\-c\fR, \fB\-\-creator\fR
46Show creator and owner.
47.TP
48\fB\-l\fR, \fB\-\-limits\fR
49Show resource limits.
50.TP
51\fB\-p\fR, \fB\-\-pid\fR
52Show PIDs of creator and last operator.
6dbe3af9 53.TP
5ccc85be 54\fB\-t\fR, \fB\-\-time\fR
d38a30a3
BS
55Write time information. The time of the last control operation that changed
56the access permissions for all facilities, the time of the last
a7bbc2f3 57.BR msgsnd (2)
5ccc85be 58and
a7bbc2f3 59.BR msgrcv (2)
d38a30a3 60operations on message queues, the time of the last
a7bbc2f3 61.BR shmat (2)
5ccc85be 62and
a7bbc2f3 63.BR shmdt (2)
d38a30a3 64operations on shared memory, and the time of the last
a7bbc2f3 65.BR semop (2)
5ccc85be 66operation on semaphores.
6dbe3af9 67.TP
5ccc85be
SK
68\fB\-u\fR, \fB\-\-summary\fR
69Show status summary.
d38a30a3
BS
70.SS "Representation"
71These affect only the \fB\-l\fR (\fB\-\-limits\fR) option.
19b7b517
SK
72.TP
73\fB\-b\fR, \fB\-\-bytes\fR
74Print sizes in bytes.
d38a30a3
BS
75.TP
76.B \-\-human
77Print sizes in human-readable format.
6dd6d868
KZ
78.SH CONFORMING TO
79The Linux ipcs utility is not fully compatible to the POSIX ipcs utility.
d38a30a3
BS
80The Linux version does not support the POSIX
81.BR \-a ,
6dd6d868
KZ
82.B \-b
83and
84.B \-o
85options, but does support the
86.B \-l
87and
88.B \-u
d38a30a3
BS
89options 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 94and
71d87029
PB
95.B \-u
96options.
67e63c12
MK
97.SH NOTES
98The current implementation of
99.B ipcs
100obtains information about available IPC resources by parsing the files in
101.IR /proc/sysvipc .
102Before util-linux version v2.23, an alternate mechanism was used: the
103.BR IPC_STAT
104command of
105.BR msgctl (2),
106.BR semctl (2),
107and
108.BR shmctl (2).
109This mechanism is also used in later util-linux versions in the case where
110.I /proc
111is unavailable.
112A limitation of the
113.B IPC_STAT
114mechanism is that it can only be used to retrieve information about
115IPC resources for which the user has read permission.
a8d0d330 116.SH AUTHORS
5ccc85be
SK
117.UR balasub@cis.ohio-state.edu
118Krishna 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 132The 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
134Linux Kernel Archive
135.UE .