mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 20:51:53 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,12 +6,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# unshare
|
||||
|
||||
> Execute a command in new user-defined namespaces.
|
||||
> More information: <https://www.kernel.org/doc/html/latest/userspace-api/unshare.html>.
|
||||
> More information: <https://manned.org/unshare>.
|
||||
|
||||
- Execute a command without sharing access to connected networks:
|
||||
|
||||
`unshare --net {{command}} {{command_arguments}}`
|
||||
`unshare {{[-n|--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}}`
|
||||
`unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}`
|
||||
|
||||
Reference in New Issue
Block a user