diff --git a/tldr/linux/nsenter b/tldr/linux/nsenter index aaa0bf43..b17ccdb1 100644 --- a/tldr/linux/nsenter +++ b/tldr/linux/nsenter @@ -13,17 +13,9 @@ source: https://github.com/tldr-pages/tldr.git `nsenter --target {{pid}} --all {{command}} {{command_arguments}}` -- Run a specific command in an existing process's network namespace: +- Run a specific command in an existing process's mount|UTS|IPC|network|PID|user|cgroup|time namespace: -`nsenter --target {{pid}} --net {{command}} {{command_arguments}}` - -- Run a specific command in an existing process's PID namespace: - -`nsenter --target {{pid}} --pid {{command}} {{command_arguments}}` - -- Run a specific command in an existing process's IPC namespace: - -`nsenter --target {{pid}} --ipc {{command}} {{command_arguments}}` +`nsenter --target {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}` - Run a specific command in an existing process's UTS, time, and IPC namespaces: