Skip to content

Commit

Permalink
lsns: add page
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienthebo committed May 4, 2022
1 parent 2eefbce commit a192644
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pages/linux/lsns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# lsns

> List information about all the currently accessible namespaces or
> about the given namespace.
> More information: <https://man7.org/linux/man-pages/man8/lsns.8.html>.
- 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 <mnt|net|ipc|user|pid|uts|cgroup|time>`

- List namespaces, only showing the namespace ID, type, PID, and command:

`lsns -o NS,TYPE,PID,COMMAND`

0 comments on commit a192644

Please sign in to comment.