NSLIST(1)

NAME
nslist cgroupnslist ipcnslist mntnslist netnslist pidnslist timenslist usernslist utsnslist - List namespaces

SYNOPSIS
nslist [ OPTIONS ] [ pid_or_namespace_id_or_placeholder_tag ] [ -- long placeholder tag ] cgroupnslist same syntax as nslist ipcnslist same syntax as nslist mntnslist same syntax as nslist netnslist same syntax as nslist pidnslist same syntax as nslist timenslist same syntax as nslist usernslist same syntax as nslist utsnslist same syntax as nslist

DESCRIPTION
nslist commands are utility commands to list namespaces (ns from now on) and check the mapping between processes and namespaces. Each nslist command has a prefix to specify the type of ns. nslist without any prefix can be used when the ns can be identified in a non ambiguous way or to list all the namespaces of any type. The ns to list can be identified by the ns id (e.g. net:[1234567890]) or using a tag defined by a nshold(1) command. By the option -r it is possible to use regular expressions to identify ns tags. If the argument is a pid instead of a ns id or tag, these commands list the ns (or namespaces) that process belongs to. In case no argument is given (after the options) these commands list all the namespaces and for each namespace all the processes belonging to that namespace.

OPTIONS

-r
--regex
    arguments are regular expressions of ns tags

-u
--listuser
    display the owner of each process

-H
--placeholder
    display only the placeholder processes

-U uid_or_username
--placeholder uid_or_username
    filter the list to include only the processes belonging to a specific user

-H
--placeholder
    show only placeholder processes

-C
--listcomm
    show the command instead of the command line

-p
--pid
    output just the list of pids of matching processes

-c
--count
    output just the number of matching processes

-T
--tabular
    give a tabular output (without titles and separations between namespaces)

-n
--numeric
    list the ns numeric id (1234567890 instead of ipc[1234567890])

-s
--short 1
    short form: list only pid and ns id for each process matching the criteria defined by the other options (for scripts)

-s -s
-ss
--short 2
    very short form: list ns id only

-t
--tag
    show a ns tag together with the ns id (when defined)

-t -t
    -tt
--tagonly
    show a ns tag instead of the ns id (when defined)

-R regex
--recomm regex
    show only those processes whose command match regex (regex is a regular expression)

-h
--help
    print a short usage banner and exit.

SEE ALSO
nshold(1) nsrelease(1) netnsjoin(1) cado(1)