mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
528 B
Plaintext
18 lines
528 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# unshare
|
|
|
|
> Execute a command in new user-defined namespaces.
|
|
> More information: <https://manned.org/unshare>.
|
|
|
|
- Execute a command without sharing access to connected networks:
|
|
|
|
`unshare {{[-n|--net]}} {{command}} {{command_arguments}}`
|
|
|
|
- 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}}`
|