1IPCS(1) User Commands IPCS(1)
2
3
4
6 ipcs - show information on IPC facilities
7
9 ipcs [options]
10
12 ipcs shows information on System V inter-process communication facili‐
13 ties. By default it shows information about all three resources:
14 shared memory segments, message queues, and semaphore arrays.
15
17 -i, --id id
18 Show full details on just the one resource element identified by
19 id. This option needs to be combined with one of the three
20 resource options: -m, -q or -s.
21
22 -h, --help
23 Display help text and exit.
24
25 -V, --version
26 Display version information and exit.
27
28 Resource options
29 -m, --shmems
30 Write information about active shared memory segments.
31
32 -q, --queues
33 Write information about active message queues.
34
35 -s, --semaphores
36 Write information about active semaphore sets.
37
38 -a, --all
39 Write information about all three resources (default).
40
41 Output formats
42 Of these options only one takes effect: the last one specified.
43
44 -c, --creator
45 Show creator and owner.
46
47 -l, --limits
48 Show resource limits.
49
50 -p, --pid
51 Show PIDs of creator and last operator.
52
53 -t, --time
54 Write time information. The time of the last control operation
55 that changed the access permissions for all facilities, the time
56 of the last msgsnd(2) and msgrcv(2) operations on message
57 queues, the time of the last shmat(2) and shmdt(2) operations on
58 shared memory, and the time of the last semop(2) operation on
59 semaphores.
60
61 -u, --summary
62 Show status summary.
63
64 Representation
65 These affect only the -l (--limits) option.
66
67 -b, --bytes
68 Print sizes in bytes.
69
70 --human
71 Print sizes in human-readable format.
72
74 The Linux ipcs utility is not fully compatible to the POSIX ipcs util‐
75 ity. The Linux version does not support the POSIX -a, -b and -o
76 options, but does support the -l and -u options not defined by POSIX.
77 A portable application shall not use the -a, -b, -o, -l, and -u
78 options.
79
81 The current implementation of ipcs obtains information about available
82 IPC resources by parsing the files in /proc/sysvipc. Before util-linux
83 version v2.23, an alternate mechanism was used: the IPC_STAT command of
84 msgctl(2), semctl(2), and shmctl(2). This mechanism is also used in
85 later util-linux versions in the case where /proc is unavailable. A
86 limitation of the IPC_STAT mechanism is that it can only be used to
87 retrieve information about IPC resources for which the user has read
88 permission.
89
91 Krishna Balasubramanian ⟨balasub@cis.ohio-state.edu⟩
92
94 ipcmk(1), ipcrm(1), msgrcv(2), msgsnd(2), semget(2), semop(2),
95 shmat(2), shmdt(2), shmget(2), sysvipc(7)
96
98 The ipcs command is part of the util-linux package and is available
99 from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
100 linux/⟩.
101
102
103
104util-linux July 2014 IPCS(1)