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.


lsns [options] [namespace]

Command Line Options:

Use JSON output format.
lsns -J ...
Use list output format.
lsns -l ...
Do not print a header line.
lsns -n ...
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 ...
Display only the namespaces held by the process with this pid.
lsns -p ...
Use the raw output format.
lsns -r ...
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 ...
Do not truncate text in columns.
lsns -u ...
Display version information and exit.
lsns -V ...
Display help text and exit.AUTHORSKarel Zak <>
lsns -h ...