OS Manuals

/usr/bin/lsns

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running lsns --help (exit 0). permalink

Usage:
 lsns [options] [<namespace ID>]

List system namespaces.

Options:
 -J, --json             use JSON output format
 -l, --list             use list format output
 -n, --noheadings       don't print headings
 -o, --output <list>    define which output columns to use
     --output-all       output all columns
 -P, --persistent       namespaces without processes
 -p, --task <pid>       print process namespaces
 -Q, --filter <expr>    apply display filter
 -r, --raw              use the raw output format
 -u, --notruncate       don't truncate text in columns
 -W, --nowrap           don't use multi-line representation
 -t, --type <name>      namespace type (mnt, net, ipc, user, pid, uts, cgroup, time)
 -T, --tree[=<rel>]     use tree format (parent, owner, or process)

 -H, --list-columns     list the available columns
 -h, --help             display this help
 -V, --version          display version

For more details see lsns(8).
Options (16)
OptionDescriptionSource
-J, --jsonUse JSON output format.help + man
-l, --listUse list output format.help + man
-n, --noheadingsDo not print a header line.help + man
-o, --output listSpecify which output columns to print.help + man
--output-allOutput all available columns.help + man
-P, --persistentDisplay only the namespaces without processes (aka persistent namespaces), created by bind mounting /proc/pid/ns/type files to a filesystem path.help + man
-p, --task pidDisplay only the namespaces held by the process with this PID.help + man
-Q, --filter exprPrint only the namespaces that meet the conditions specified by the expr.help + man
-r, --rawUse the raw output format.help + man
-u, --notruncateDo not truncate text in columns.help + man
-W, --nowrapDo not use multi-line text in columns.help + man
-t, --type namenamespace type (mnt, net, ipc, user, pid, uts, cgroup, time)help + man
-T, --tree reluse tree format (parent, owner, or process)help + man
-H, --list-columnsList the columns that can be specified with the --output option.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
Exit status (3) from the manual page
0Success.
1General error.
2An ioctl was unknown to the kernel.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.