Linux "lsns" Command Line Options and Examples
list namespaces

lsns lists information about all the currently accessible namespaces or about the given namespace. The namespace identifier is an inode number. The default output is subject to change.


Usage:

lsns [options] [namespace]






Command Line Options:

-J
Use JSON output format.
lsns -J ...
-l
Use list output format.
lsns -l ...
-n
Do not print a header line.
lsns -n ...
-o
Specify which output columns to print. Use --help to get a list of all supported columns.The default list of columns may be extended if list is specified in the format +list (e.g. lsns -o +PATH).
lsns -o ...
-p
Display only the namespaces held by the process with this pid.
lsns -p ...
-r
Use the raw output format.
lsns -r ...
-t
Display the specified type of namespaces only. The supported types are mnt, net, ipc, user, pid, uts and cgroup. This optionmay be given more than once.
lsns -t ...
-u
Do not truncate text in columns.
lsns -u ...
-V
Display version information and exit.
lsns -V ...
-h
Display help text and exit.AUTHORSKarel Zak <kzak@redhat.com>
lsns -h ...