mirror of https://github.com/CrimsonTome/tldr.git
nsenter: add namespaces examples (#8084)
add examples for multiple namespaces, procfs specified namespacehtop
parent
ab5154719a
commit
59e789fc73
|
@ -19,3 +19,11 @@
|
||||||
- Run a specific command in an existing process's IPC namespace:
|
- Run a specific command in an existing process's IPC namespace:
|
||||||
|
|
||||||
`nsenter --target {{pid}} --ipc {{command}} {{command_arguments}}`
|
`nsenter --target {{pid}} --ipc {{command}} {{command_arguments}}`
|
||||||
|
|
||||||
|
- Run a specific command in an existing process's UTS, time, and IPC namespaces:
|
||||||
|
|
||||||
|
`nsenter --target {{pid}} --uts --time --ipc -- {{command}} {{command_arguments}}`
|
||||||
|
|
||||||
|
- Run a specific command in an existing process's namespace by referencing procfs:
|
||||||
|
|
||||||
|
`nsenter --pid=/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}`
|
||||||
|
|
Loading…
Reference in New Issue