unshare: add page (#7920)

feature/refresh-touch
Seth Falco 2022-04-03 00:19:56 +02:00 committed by GitHub
parent 59f031bb0c
commit 487d901904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

12
pages/linux/unshare.md Normal file
View File

@ -0,0 +1,12 @@
# unshare
> Execute a command in new user-defined namespaces.
> More information: <https://www.kernel.org/doc/html/latest/userspace-api/unshare.html>.
- 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}}`