1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/unshare.md

13 lines
436 B
Markdown
Raw Normal View History

2022-04-03 00:19:56 +02:00
# unshare
> Execute a command in new user-defined namespaces.
> More information: <https://manned.org/unshare>.
2022-04-03 00:19:56 +02:00
- Execute a command without sharing access to connected networks:
`unshare {{[-n|--net]}} {{command}} {{command_arguments}}`
2022-04-03 00:19:56 +02:00
- Execute a command as a child process without sharing mounts, processes, or networks:
`unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}`