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}}`