]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/lsns.8.adoc
Fix several adoc files as reported by Helge Kreutzmann
[thirdparty/util-linux.git] / sys-utils / lsns.8.adoc
CommitLineData
295b3979 1//po4a: entry man manual
6d5b6948
MB
2////
3Man page for the lsns command.
4Copyright 2015 Karel Zak <kzak@redhat.com>
5May be distributed under the GNU General Public License
6////
7= lsns(8)
8:doctype: manpage
a09649ca 9:man manual: System Administration
6d5b6948
MB
10:man source: util-linux {release-version}
11:page-layout: base
12:command: lsns
13
14== NAME
15
16lsns - list namespaces
17
18== SYNOPSIS
19
4d297435 20*lsns* [options] _namespace_
6d5b6948
MB
21
22== DESCRIPTION
23
24*lsns* lists information about all the currently accessible namespaces or about the given _namespace_. The _namespace_ identifier is an inode number.
25
3387ad72 26The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly define expected output mode (*--tree* or *--list*) and columns by using the *--output* option together with a columns list in environments where a stable output is required.
6d5b6948
MB
27
28The *NSFS* column, printed when *net* is specified for the *--type* option, is special; it uses multi-line cells. Use the option *--nowrap* to switch to ","-separated single-line representation.
29
30Note that *lsns* reads information directly from the _/proc_ filesystem and for non-root users it may return incomplete information. The current _/proc_ filesystem may be unshared and affected by a PID namespace (see *unshare --mount-proc* for more details). *lsns* is not able to see persistent namespaces without processes where the namespace instance is held by a bind mount to /proc/_pid_/ns/_type_.
31
32== OPTIONS
33
34*-J*, *--json*::
4eab78d3 35Use JSON output format.
6d5b6948
MB
36
37*-l*, *--list*::
4eab78d3 38Use list output format.
6d5b6948
MB
39
40*-n*, *--noheadings*::
4eab78d3 41Do not print a header line.
6d5b6948
MB
42
43*-o*, *--output* _list_::
4eab78d3
MB
44Specify which output columns to print. Use *--help* to get a list of all supported columns.
45+
46The default list of columns may be extended if _list_ is specified in the format **+**__list__ (e.g., *lsns -o +PATH*).
6d5b6948
MB
47
48*--output-all*::
4eab78d3 49Output all available columns.
6d5b6948
MB
50
51*-p*, *--task* _PID_::
4eab78d3 52Display only the namespaces held by the process with this _PID_.
6d5b6948
MB
53
54*-r*, *--raw*::
4eab78d3 55Use the raw output format.
6d5b6948
MB
56
57*-t*, *--type* _type_::
4eab78d3 58Display the specified _type_ of namespaces only. The supported types are *mnt*, *net*, *ipc*, *user*, *pid*, *uts*, *cgroup* and *time*. This option may be given more than once.
6d5b6948
MB
59
60*-u*, *--notruncate*::
4eab78d3 61Do not truncate text in columns.
6d5b6948
MB
62
63*-W*, *--nowrap*::
4eab78d3 64Do not use multi-line text in columns.
6d5b6948 65
3387ad72 66*-T*, *--tree* _rel_::
bd67ca44 67Use tree-like output format. If *process* is given as _rel_, print process tree(s) in each name space. This is default when *--tree* is not specified. If *parent* is given, print tree(s) constructed by the parent/child relationship. If *owner* is given, print tree(s) constructed by the owner/owned relationship. *owner* is used as default when _rel_ is omitted.
8d27b605 68
2b2d3172 69include::man-common/help-version.adoc[]
6d5b6948
MB
70
71== AUTHORS
72
73mailto:kzak@redhat.com[Karel Zak]
74
75== SEE ALSO
76
77*nsenter*(1),
78*unshare*(1),
79*clone*(2),
64e8df5d 80*namespaces*(7),
bd67ca44 81*ioctl_ns*(2)
6d5b6948 82
625e9c61 83include::man-common/bugreports.adoc[]
6d5b6948 84
625e9c61 85include::man-common/footer.adoc[]
6d5b6948
MB
86
87ifdef::translation[]
625e9c61 88include::man-common/translation.adoc[]
6d5b6948 89endif::[]