From a1926444a04214b5378ecac5c5c1e274e7bc0656 Mon Sep 17 00:00:00 2001 From: Adrien Thebo Date: Wed, 4 May 2022 10:25:40 -0700 Subject: [PATCH] lsns: add page --- pages/linux/lsns.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/linux/lsns.md diff --git a/pages/linux/lsns.md b/pages/linux/lsns.md new file mode 100644 index 00000000000000..2ac5dbc7feff33 --- /dev/null +++ b/pages/linux/lsns.md @@ -0,0 +1,25 @@ +# lsns + +> List information about all the currently accessible namespaces or +> about the given namespace. +> More information: . + +- List all namespaces: + +`lsns` + +- List namespaces in JSON format: + +`lsns --json` + +- List namespaces associated with {{pid}}: + +`lsns --task {{pid}}` + +- List the specified type of namespaces only: + +`lsns --type ` + +- List namespaces, only showing the namespace ID, type, PID, and command: + +`lsns -o NS,TYPE,PID,COMMAND`