2025-03-14 21:59:59 -06:00
|
|
|
# lsns
|
|
|
|
|
|
|
|
|
|
> List information about all namespaces or about the specified namespace.
|
|
|
|
|
> More information: <https://manned.org/lsns>.
|
|
|
|
|
|
|
|
|
|
- List all namespaces:
|
|
|
|
|
|
|
|
|
|
`lsns`
|
|
|
|
|
|
|
|
|
|
- List namespaces in JSON format:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`lsns {{[-J|--json]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List namespaces associated with the specified process:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`lsns {{[-p|--task]}} {{pid}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List the specified type of namespaces only:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`lsns {{[-t|--type]}} {{mnt|net|ipc|user|pid|uts|cgroup|time}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List namespaces, only showing the namespace ID, type, PID, and command:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`lsns {{[-o|--output]}} {{NS,TYPE,PID,COMMAND}}`
|