NSENTER(1) NSENTER(1) (NAME) nsenter - (Namespaces) (SYNOPSIS) nsenter [options] [program [arguments]] (DESCRIPTION) nsenter program () ( ) . program "${SHELL}" (: /bin/sh). : (mount namespace) ( mount --make-shared shared /proc/self/mountinfo ). mount_namespaces(7) CLONE_NEWNS clone(2) . UTS (UTS namespace) (hostname) (domainname) . uts_namespaces(7) . IPC (IPC namespace) POSIX System V . ipc_namespaces(7) . (network namespace) IPv4 IPv6 IP (firewall) /proc/net /sys/class/net . network_namespaces(7) . PID (PID namespace) PID nsenter . PID nsenter fork PID . --no-fork fork (exec) . pid_namespaces(7) . (user namespace) UID GID (capabilities) . user_namespaces(7) . cgroup (cgroup namespace) /proc/self/cgroup cgroup cgroup . cgroup_namespaces(7) . (time namespace) CLOCK_MONOTONIC / CLOCK_BOOTTIME /proc/self/timens_offsets . time_namespaces(7) . unshare(1) . nsenter . (OPTIONS) file . /proc/[pid]/ns/* namespaces(7) (bind mount) . -a, --all /proc//ns/*. ( --all --mount=path). . (capabilities) setns(2) . . -t, --target PID[:inode] (contexts) . PID : /proc/pid/ns/mnt /proc/pid/ns/uts UTS /proc/pid/ns/ipc IPC /proc/pid/ns/net /proc/pid/ns/pid PID /proc/pid/ns/user /proc/pid/ns/cgroup cgroup /proc/pid/ns/time /proc/pid/root /proc/pid/cwd PID:inode . inode (file descriptor) . inode getino(1) . -m, --mount[=file|=:nsid] . . file :nsid file nsid . -u, --uts[=file|=:nsid] UTS. UTS . file :nsid UTS file nsid . -i, --ipc[=file|=:nsid] IPC. IPC . file :nsid IPC file nsid . -n, --net[=file|=:nsid] . . file :nsid file nsid . -N, --net-socket fd . --target . . . -p, --pid[=file|=:nsid] PID. PID . file :nsid PID file nsid . -U, --user[=file|=:nsid] . . file :nsid file nsid . --setuid --setgid . --user-parent . . --user . -C, --cgroup[=file|=:nsid] cgroup. cgroup . file :nsid cgroup file nsid . -T, --time[=file|=:nsid] . . file :nsid file nsid . -G, --setgid gid (GID) (supplementary groups). nsenter GID 0 . "follow" GID . -S, --setuid uid (UID) . nsenter UID 0 . "follow" UID . --keep-caps --user . --preserve-credentials UID GID . GID UID 0 . -r, --root[=directory] . . . directory . -w, --wd[=directory] . . . directory "" . --wdns . -W, --wdns[=directory] . directory chroot(2) . --wd --wdns . -e, --env . . -F, --no-fork (exec) fork . PID nsenter exec fork PID . -Z, --follow-context SELinux --target PID . ( util-linux SELinux .) -c, --join-cgroup cgroup . -h, --help . -V, --version . (NOTES) --user-parent . < >> (inappropriate ioctl for device) . nsid . . file (colon) ./ . (AUTHORS) Eric Biederman , Karel Zak (SEE ALSO) unshare(1), lsns(8), clone(2), setns(2), namespaces(7), getino(1) (REPORTING BUGS) . . (AVAILABILITY) nsenter util-linux . . util-linux 2.42.3 2026-09-02 NSENTER(1)