]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nsenter: (man) correct the markup and improve the formatting
authorBenno Schulenberg <bensberg@telfort.nl>
Sun, 8 Mar 2026 11:20:04 +0000 (12:20 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2026 10:12:16 +0000 (11:12 +0100)
Remove the mistaken angle brackets that were introduced last month
by commit f2a5997869, add the missing equals sign, and put both it
and the subsequent colon in bold as they are literal characters.

Also, indent the list of paths to make it clearer where it ends,
and so that the subsequent paragraph gets indented correctly.

CC: Xiao Liang <shaw.leon@gmail.com>
CC: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/nsenter.1.adoc

index 9e5bc81dab5e2f1d33fda68e759f71a5198c0de3..34fde93ac8db8472580acbc9201ad1670cae7125 100644 (file)
@@ -59,9 +59,10 @@ by namespace-specific options (e.g., **--all --mount=**_path_).
 +
 The user namespace will be ignored if it is the same as the caller's current user namespace. It prevents a caller that has dropped capabilities from regaining those capabilities via a call to *setns*(2). See the man page for more details.
 
-*-t*, *--target* _PID[:inode]_::
+*-t*, *--target* _PID_[**:**_inode_]::
 Specify a target process to get contexts from. The paths to the contexts specified by _PID_ are:
-
++
+____
 _/proc/pid/ns/mnt_;;
 the mount namespace
 _/proc/pid/ns/uts_;;
@@ -82,41 +83,41 @@ _/proc/pid/root_;;
 the root directory
 _/proc/pid/cwd_;;
 the working directory respectively
-
-Optionally, a process can be addressed with the format _PID:inode_. The _inode_
+____
+Optionally, a process can be addressed with the format _PID_**:**_inode_. The _inode_
 identifies the unique process's file descriptor. To retrieve a process's inode
 number you can use the *getino*(1) utility.
 
-*-m*, *--mount*[**=**<__file__|:__nsid__>]::
-Enter the mount namespace. If no argument is specified, enter the mount namespace of the target process. If _file_ or :__nsid__ is specified, enter the mount namespace specified by _file_ or _nsid_.
+*-m*, *--mount*[**=**_file_|**=:**_nsid_]::
+Enter the mount namespace. If no argument is specified, enter the mount namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the mount namespace specified by _file_ or _nsid_.
 
-*-u*, *--uts*[**=**<__file__|:__nsid__>]::
-Enter the UTS namespace. If no argument is specified, enter the UTS namespace of the target process. If _file_ or :__nsid__ is specified, enter the UTS namespace specified by _file_ or _nsid_.
+*-u*, *--uts*[**=**_file_|**=:**_nsid_]::
+Enter the UTS namespace. If no argument is specified, enter the UTS namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the UTS namespace specified by _file_ or _nsid_.
 
-*-i*, *--ipc*[**=**<__file__|:__nsid__>]::
-Enter the IPC namespace. If no argument is specified, enter the IPC namespace of the target process. If _file_ or :__nsid__ is specified, enter the IPC namespace specified by _file_ or _nsid_.
+*-i*, *--ipc*[**=**_file_|**=:**_nsid_]::
+Enter the IPC namespace. If no argument is specified, enter the IPC namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the IPC namespace specified by _file_ or _nsid_.
 
-*-n*, *--net*[**=**<__file__|:__nsid__>]::
-Enter the network namespace. If no argument is specified, enter the network namespace of the target process. If _file_ or :__nsid__ is specified, enter the network namespace specified by _file_ or _nsid_.
+*-n*, *--net*[**=**_file_|**=:**_nsid_]::
+Enter the network namespace. If no argument is specified, enter the network namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the network namespace specified by _file_ or _nsid_.
 
 *-N*, *--net-socket* _fd_::
 Enter the network namespace of the target process's socket. It requires *--target* process specified. Supported since Linux 5.6.
 
-*-p*, *--pid*[**=**<__file__|:__nsid__>]::
-Enter the PID namespace. If no argument is specified, enter the PID namespace of the target process. If _file_ or :__nsid__ is specified, enter the PID namespace specified by _file_ or _nsid_.
+*-p*, *--pid*[**=**_file_|**=:**_nsid_]::
+Enter the PID namespace. If no argument is specified, enter the PID namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the PID namespace specified by _file_ or _nsid_.
 
-*-U*, *--user*[**=**<__file__|:__nsid__>]::
-Enter the user namespace. If no argument is specified, enter the user namespace of the target process. If _file_ or :__nsid__ is specified, enter the user namespace specified by _file_ or _nsid_. See also the *--setuid* and *--setgid* options.
+*-U*, *--user*[**=**_file_|**=:**_nsid_]::
+Enter the user namespace. If no argument is specified, enter the user namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the user namespace specified by _file_ or _nsid_. See also the *--setuid* and *--setgid* options.
 
 *--user-parent*::
 Enter the parent user namespace. Parent user namespace will be acquired from any other enabled namespace.
 If combined with *--user* option the parent user namespace will be fetched from the user namespace and replace it.
 
-*-C*, *--cgroup*[**=**<__file__|:__nsid__>]::
-Enter the cgroup namespace. If no argument is specified, enter the cgroup namespace of the target process. If _file_ or :__nsid__ is specified, enter the cgroup namespace specified by _file_ or _nsid_.
+*-C*, *--cgroup*[**=**_file_|**=:**_nsid_]::
+Enter the cgroup namespace. If no argument is specified, enter the cgroup namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the cgroup namespace specified by _file_ or _nsid_.
 
-*-T*, *--time*[**=**<__file__|:__nsid__>]::
-Enter the time namespace. If no argument is specified, enter the time namespace of the target process. If _file_ or :__nsid__ is specified, enter the time namespace specified by _file_ or _nsid_.
+*-T*, *--time*[**=**_file_|**=:**_nsid_]::
+Enter the time namespace. If no argument is specified, enter the time namespace of the target process. If _file_ or **:**_nsid_ is specified, enter the time namespace specified by _file_ or _nsid_.
 
 *-G*, *--setgid* _gid_::
 Set the group ID which will be used in the entered namespace and drop supplementary groups.
@@ -161,8 +162,8 @@ include::man-common/help-version.adoc[]
 
 The *--user-parent* option requires Linux 4.9 or higher, older kernels will raise inappropriate ioctl for device error.
 
-Specifying namespaces by _nsid_ requires Linux 6.19 or higher. If a namespace
-file name starts with a colon, prepend "./" for disambiguation.
+Specifying namespaces by _nsid_ requires Linux 6.19 or higher.
+If a namespace _file_ name starts with a colon, prepend *./* for disambiguation.
 
 == AUTHORS