NSENTER(1) NSENTER(1) nsenter - nsenter [] [ []] nsenter () ( ). "${SHELL}" (: /bin/sh). : ( mount --make-shared /proc/self/mountinfo shared). mount_namespaces(7) CLONE_NEWNS clone(2). UTS . uts_namespaces(7). IPC namespace POSIX System V . ipc_namespaces(7). network namespace IPv4 IPv6 IP /proc/net /sys/class/net . network_namespaces(7). PID namespace PID nsenter. nsenter (fork) PID PID . --no-fork . pid_namespaces(7). (UIDs) (GIDs) . user_namespaces(7). cgroup /proc/self/cgroup cgroup cgroup . cgroup_namespaces(7). CLOCK_MONOTONIC / CLOCK_BOOTTIME /proc/self/timens_offsets. time_namespaces(7). unshare(1). nsenter. . /proc/[pid]/ns/* namespaces(7) (bind mount) . -a --all /proc//ns/*. ( --all --mount=). . setns(2). . -t --target PID[:inode] . " "_ (PID) : /proc/pid/ns/mnt /proc/pid/ns/uts UTS /proc/pid/ns/ipc IPC /proc/pid/ns/net /proc/pid/ns/pid /proc/pid/ns/user /proc/pid/ns/cgroup cgroup /proc/pid/ns/time /proc/pid/root /proc/pid/cwd PID:inode. inode . inode getino(1). -m --mount[=|=:nsid] . . :nsid nsid. -u --uts[=|=:nsid] UTS. UTS . :nsid UTS nsid. -i --ipc[=|=:nsid] IPC. IPC . :nsid IPC nsid. -n --net[=|=:nsid] . . :nsid nsid. -N --net-socket fd . --target. 5.6. -p --pid[=|=:nsid] (PID). PID . :nsid PID nsid. -U --user[=|=:nsid] . . file :nsid . --setuid --setgid. --user-parent . . --user . -C --cgroup[=|=:nsid] (cgroup). cgroup . :nsid cgroup nsid. -T --time[=|=:nsid] . . :nsid nsid. -G --setgid gid (GID) . 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 . -w --wd[=] . . . directory "" . --wdns. -W --wdns[=] . directory chroot(2). --wd --wdns . -e --env . . -F --no-fork (fork) (exec) . PID nsenter fork exec PID . -Z --follow-context SELinux PID --target. ( util-linux SELinux .) -c --join-cgroup cgroup . -h --help . -V --version . --user-parent 4.9 ioctl . nsid 6.19 . ./ . unshare(1) lsns(8) clone(2) setns(2) namespaces(7) getino(1) . nsenter util-linux . util-linux 2.42.1 2026-05-18 NSENTER(1)