commands.sh

unshare

linux

Execute a command in new user-defined namespaces.

More info →

Options (4)

-n, --netboolean

Execute a command without sharing access to connected networks

Example: unshare {{[-n|--net]}} {{command}} {{command_arguments}}
-m, --mountboolean

Execute a command as a child process without sharing mounts, processes, or networks

Example: unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}
-i, --pidboolean

Execute a command as a child process without sharing mounts, processes, or networks

Example: unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}
-f, --forkboolean

Execute a command as a child process without sharing mounts, processes, or networks

Example: unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}

Examples (2)

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
made by @shridhargupta | data from tldr-pages