From 487d901904c179ce444b04a44a815fab2dfa7ca0 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Sun, 3 Apr 2022 00:19:56 +0200 Subject: [PATCH] unshare: add page (#7920) --- pages/linux/unshare.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/linux/unshare.md diff --git a/pages/linux/unshare.md b/pages/linux/unshare.md new file mode 100644 index 000000000..8a9be7d1e --- /dev/null +++ b/pages/linux/unshare.md @@ -0,0 +1,12 @@ +# unshare + +> Execute a command in new user-defined namespaces. +> More information: . + +- Execute a command without sharing access to connected networks: + +`unshare --net {{command}} {{command_arguments}}` + +- Execute a command as a child process without sharing mounts, processes, or networks: + +`unshare --mount --pid --net --fork {{command}} {{command_arguments}}`