2025-03-14 21:59:59 -06:00
|
|
|
# unshare
|
|
|
|
|
|
|
|
|
|
> Execute a command in new user-defined namespaces.
|
2025-04-03 20:36:56 -06:00
|
|
|
> More information: <https://manned.org/unshare>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Execute the default shell:
|
|
|
|
|
|
|
|
|
|
`unshare`
|
|
|
|
|
|
2025-03-14 21:59:59 -06:00
|
|
|
- Execute a command without sharing access to connected networks:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo unshare {{[-n|--net]}} {{command}} {{argument1 argument2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Execute a command as a child process without sharing mounts, processes, or networks:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo unshare {{[-minf|--mount --pid --net --fork]}} {{command}} {{argument1 argument2 ...}}`
|