From ffc12a5077908ff2cc0f8643cdf60f6248998b65 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 24 Jul 2024 00:16:04 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/nsenter | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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: