unshare
Execute a command in new user-defined namespaces. More information: https://www.kernel.org/doc/html/latest/userspace-api/unshare.html.
- Execute a command without sharing access to connected networks:
unshare --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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.