]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Manual pages: Standardize on EXAMPLE as section title
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Tue, 19 May 2020 12:51:48 +0000 (14:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 May 2020 10:56:12 +0000 (12:56 +0200)
There is quite some value (in terms of readability and user
expectations) if consistent names are used for the sections
within manual pages. This patch is one of a series to bring
about this consistency.

Currently we have EXAMPLE (10) or EXAMPLES (23).
Let's standardize on the EXAMPLE (which is also what is
suggested in man-pages(7)) and used consistently across
a large number of pages in the Linux man-pages project.

(I realize the choice to go EXAMPLE, rather than EXAMPLES,
may be debatable. If necessary, I'd write a patch that instead
goes the other way, but I'd prefer to follow man-pages(7).)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
21 files changed:
disk-utils/partx.8
lib/terminal-colors.d.5
misc-utils/findmnt.8
misc-utils/logger.1
misc-utils/rename.1
misc-utils/uuidgen.1
misc-utils/wipefs.8
schedutils/ionice.1
sys-utils/chmem.8
sys-utils/flock.1
sys-utils/pivot_root.8
sys-utils/prlimit.1
sys-utils/readprofile.8
sys-utils/renice.1
sys-utils/rfkill.8
sys-utils/setarch.8
sys-utils/unshare.1
term-utils/agetty.8
text-utils/colcrt.1
text-utils/column.1
text-utils/hexdump.1

index d6ff52f086a01da11fc365476070bd461f159735..e07787b105bcc691314c84b47bc6f503905db145 100644 (file)
@@ -144,7 +144,7 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 .TP
 partx \-\-show /dev/sdb3
 .TQ
index 4747ca268ea11889452ff5ee25c340c09c0053fb..73dff6a47ef81577edae8e1762dafd77b040aa1f 100644 (file)
@@ -50,7 +50,7 @@ or
 .I $HOME/.config/terminal-colors.d
 overrides the global setting.
 
-.SH EXAMPLES
+.SH EXAMPLE
 Disable colors for all compatible utilities:
 .RS
 .br
index 6fe35ab86254d453d279a5cbe0acfa0a07773884..3e49c5be185c6d127ae46bd9c2912523cf2dffb3 100644 (file)
@@ -260,7 +260,7 @@ It's possible to specify source (device) or target (mountpoint) to filter mount
 .TP
 .B \-\-verbose
 Force findmnt to print more information (\fB\-\-verify\fP only for now).
-.SH EXAMPLES
+.SH EXAMPLE
 .IP "\fBfindmnt \-\-fstab \-t nfs\fP"
 Prints all NFS filesystems defined in
 .IR /etc/fstab .
index e4a52228e60ac4b427cdc1430cd96d2068611deb..731695aed3c1dfdc469b850db833d4efbf0115be 100644 (file)
@@ -345,7 +345,7 @@ l l.
 .PP
 For the priority order and intended purposes of these facilities and levels, see
 .BR syslog (3).
-.SH EXAMPLES
+.SH EXAMPLE
 .B logger System rebooted
 .br
 .B logger \-p local0.notice \-t HOSTIDM \-f /dev/idmc
index 7963a79b77dbbe9b490348baa00dc23729e6c43e..8067017f24805239c0f564762a2640476a08a71c 100644 (file)
@@ -40,7 +40,7 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 Given the files
 .IR foo1 ", ..., " foo9 ", " foo10 ", ..., " foo278 ,
 the commands
index 0189587a3104153682d98210381e4d7067d750f4..07d6461042c37f4ec32029aa28c8a9a29959a74d 100644 (file)
@@ -89,7 +89,7 @@ Generate the hash of the \fIname\fR.
 Interpret name \fIname\fR as a hexadecimal string.
 .SH CONFORMING TO
 OSF DCE 1.1
-.SH EXAMPLES
+.SH EXAMPLE
 uuidgen \-\-sha1 \-\-namespace @dns \-\-name "www.example.com"
 .SH AUTHORS
 .B uuidgen
index 8882ed84a12e88b05fda97a1019a7b838c108c78..39e9c9f9663ed118bc4b920efe8f5100a3a01cde 100644 (file)
@@ -65,7 +65,7 @@ restricted with the \fB\-t\fR option.
 .TP
 .BR \-b , " \-\-backup"
 Create a signature backup to the file $HOME/wipefs-<devname>-<offset>.bak.
-For more details see the \fBEXAMPLES\fR section.
+For more details see the \fBEXAMPLE\fR section.
 .TP
 .BR \-f , " \-\-force"
 Force erasure, even if the filesystem is mounted.  This is required in
@@ -112,7 +112,7 @@ taken.  For more details see mount(8).
 .TP
 .BR \-V , " \-\-version"
 Display version information and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 .TP
 .B wipefs /dev/sda*
 Prints information about sda and all partitions on sda.
index fa5c1ad19daf8377eaaff75dd974a3f163a3df6e..0b2daba6c9cb3332abd043d81a10ac2a2a5c9761 100644 (file)
@@ -113,7 +113,7 @@ scheduling parameters.
 .TP
 .BR \-V , " \-\-version"
 Display version information and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 .LP
 .TP 7
 # \fBionice\fP \-c 3 \-p 89
index c0941ea700b06f241f19d916213c2fcf82abab9d..c115140072fa6ad14ffc64d1187462aca7cfb515 100644 (file)
@@ -91,7 +91,7 @@ failure
 .TP
 .B 64
 partial success
-.SH EXAMPLES
+.SH EXAMPLE
 .TP
 .B chmem \-\-enable 1024
 This command requests 1024 MiB of memory to be set online.
index fba4ec8c04800bc601a158ad5d8a1f711eeed90f..abcbc73ee96fca0ff0e8cfcc9f9819438e8194c3 100644 (file)
@@ -124,7 +124,7 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 Note that "shell> " in examples is a command line prompt.
 .TP
 shell1> flock /tmp \-c cat
index b1395e04f22697332ca123bc59955e162b8126ef..ea98f3b3d8afdbd6b578323b731468b79761b747 100644 (file)
@@ -39,7 +39,7 @@ Display version information and exit.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 Change the root file system to /dev/hda1 from an interactive shell:
 .sp
 .nf
index 71dd7faa3c6c6ccadfb11681b8d2658b76fec968..fb784377bb6d7a6f2d38834f111dc2fa8bd46b3c 100644 (file)
@@ -89,7 +89,7 @@ Maximum number of file locks held.
 .IP "\fB\-y, \-\-rttime\fP[=\fIlimits\fR]"
 Timeout for real-time tasks.
 
-.SH EXAMPLES
+.SH EXAMPLE
 .IP "\fBprlimit \-\-pid 13134\fP"
 Display limit values for all current resources.
 .IP "\fBprlimit \-\-pid 13134 \-\-rss \-\-nofile=1024:4095\fP"
index 9aef1bfba66847af0f3fb8ba242c5817cdf67b1e..7b7b2ab416a683b76f49959ce098f1a4456427bd 100644 (file)
@@ -90,7 +90,7 @@ Display version information and exit.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 Browse the profiling buffer ordering by clock ticks:
 .nf
    readprofile | sort \-nr | less
index 3ef3512f42badb8a321aaba9c1df61be46e116e5..12a0f608d9807979ecf7bed6d63cda16b344e3b5 100644 (file)
@@ -77,7 +77,7 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 The following command would change the priority of the processes with
 PIDs 987 and 32, plus all processes owned by the users daemon and root:
 .TP
index 0d37523bb0455ed687558bc7549129f96c0c84c3..373af79ac1fb0ac75bdb424c934875112bf51e91 100644 (file)
@@ -74,7 +74,7 @@ Disable the corresponding device.
 Enable the corresponding device.  If the device is hard\-blocked, for example
 via a hardware switch, it will remain unavailable though it is now
 soft\-unblocked.
-.SH EXAMPLES
+.SH EXAMPLE
 rfkill --output ID,TYPE
 .br
 rfkill block all
index a5e8b1f798dbadc1d0d4a30e22aa9494d758b051..7040ac0038192981e3bcf7d77edc60394c094197 100644 (file)
@@ -113,7 +113,7 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 setarch \-\-addr-no-randomize mytestprog
 .br
 setarch ppc32 rpmbuild \-\-target=ppc \-\-rebuild foo.src.rpm
index 86506ffa34743234e71eec38b4891f203030d118..b22329d9e2a2a5ac639efdac0284c8f31fbec3fd 100644 (file)
@@ -18,7 +18,7 @@ even after the \fIprogram\fR terminates (except PID namespaces where
 permanently running init process is required).
 Once a persistent \%namespace is no longer needed, it can be unpersisted with
 .BR umount (8).
-See the \fBEXAMPLES\fR section for more details.
+See the \fBEXAMPLE\fR section for more details.
 .PP
 .B unshare
 since util-linux version 2.36 uses /\fIproc/[pid]/ns/pid_for_children\fP and \fI/proc/[pid]/ns/time_for_children\fP
@@ -259,7 +259,7 @@ The proc and sysfs filesystems mounting as root in a user namespace have to be
 restricted so that a less privileged user can not get more access to sensitive
 files that a more privileged user made unavailable. In short the rule for proc
 and sysfs is as close to a bind mount as possible.
-.SH EXAMPLES
+.SH EXAMPLE
 .TP
 .B # unshare \-\-fork \-\-pid \-\-mount-proc readlink /proc/self
 .TQ
index 1ad1cddff077f3e8c03f5baca44275f64059eeb8..c8d9796c503b36418689edb19cc9327e794ac2d6 100644 (file)
@@ -305,7 +305,7 @@ Display version information and exit.
 \-\-help
 Display help text and exit.
 .PP
-.SH EXAMPLES
+.SH EXAMPLE
 This section shows examples for the process field of an entry in the
 \fI/etc/inittab\fP file.  You'll have to prepend appropriate values
 for the other fields.  See \fIinittab(5)\fP for more details.
index dbfffb41d7d763e58c59cd0115c4c224beb5710a..341d34c83679902ab2d02ae10dbf4e5789690b74 100644 (file)
@@ -66,7 +66,7 @@ Display version information and exit.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help text and exit.
-.SH EXAMPLES
+.SH EXAMPLE
 A typical use of
 .B colcrt
 would be:
index e880f08b23227de0e199ee4f47962b3b2f342bbe..7ca8a8b31c637aa76f8e32649abf17cfd00f1d0a 100644 (file)
@@ -126,7 +126,7 @@ Display help text and exit.
 .SH ENVIRONMENT
 The environment variable \fBCOLUMNS\fR is used to determine the size of
 the screen if no other information is available.
-.SH EXAMPLES
+.SH EXAMPLE
 Print fstab with header line and align number to the right:
 .EX
 \fBsed 's/#.*//' /etc/fstab | column \-\-table \-\-table-columns SOURCE,TARGET,TYPE,OPTIONS,PASS,FREQ \-\-table-right PASS,FREQ\fR
index 8e0b278a96fe8d00c1b1ac3fe706f32f7e4ee141..66ff157f77cc8ea567e7d9cf9337465abf01eb3a 100644 (file)
@@ -343,7 +343,7 @@ used between format units than in the default output).
 .SH EXIT STATUS
 .B hexdump
 exits 0 on success and >0 if an error occurred.
-.SH EXAMPLES
+.SH EXAMPLE
 Display the input in perusal format:
 .nf
    "%06.6_ao "  12/1 "%3_u "