This commit unifies and improves --bytes option.
Fixes: https://github.com/util-linux/util-linux/issues/1572
Signed-off-by: Karel Zak <kzak@redhat.com>
Add the specified partitions, or read the disk and add all partitions.
*-b*, *--bytes*::
-Print the SIZE column in bytes rather than in human-readable format.
+include::man-common/in-bytes.adoc[]
*-d*, *--delete*::
Delete the specified partitions or all partitions. It is not error to remove non-existing partitions, so this option is possible to use together with large *--nr* ranges without care about the current partitions set on the device.
man-common/footer.adoc \
man-common/footer-config.adoc \
man-common/footer-lib.adoc \
+ man-common/in-bytes.adoc \
man-common/manpage-stub.adoc \
man-common/translation.adoc
--- /dev/null
+Print the sizes in bytes rather than in a human-readable format.
++
+By default, the unit, sizes are expressed in, is byte, and unit prefixes are in
+power of 2^10 (1024). Abbreviations of symbols are exhibited truncated in order
+to reach a better readability, by exhibiting alone the first letter of them;
+examples: "1 KiB" and "1 MiB" are respectively exhibited as "1 K" and "1 M",
+then omitting on purpose the mention "iB", which is part of these abbreviations.
Do not print a header line in status output.
*-b*, *--bytes*::
-Print the SIZE column in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-o*, *--output* _list_::
Define output columns. See the *--help* output to get a list of the currently supported columns. The default list of columns may be extended if _list_ is specified in the format _{plus}list_.
Use ascii characters for tree formatting.
*-b*, *--bytes*::
-Print the SIZE, USED and AVAIL columns in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-C*, *--nocanonicalize*::
Do not canonicalize paths at all. This option affects the comparing of paths and the evaluation of tags (LABEL, UUID, etc.).
Disable all built-in filters and list all empty devices and RAM disk devices too.
*-b*, *--bytes*::
-Print the SIZE column in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-D*, *--discard*::
Print information about the discarding capabilities (TRIM, UNMAP) for each device.
== OPTIONS
*-b*, *--bytes*::
-Print the SIZE column in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-i*, *--noinaccessible*::
Ignore lock files which are inaccessible for the current user.
These affect only the *-l* (*--limits*) option.
*-b*, *--bytes*::
-Print sizes in bytes.
+include::man-common/in-bytes.adoc[]
+
*--human*::
Print sizes in human-readable format.
Include lines for online and offline CPUs in the output (default for *-e*). This option may only be specified together with option *-e* or *-p*.
*-B*, *--bytes*::
-Print the sizes in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-b*, *--online*::
Limit the output to online CPUs (default for *-p*). This option may only be specified together with option *-e* or *-p*.
List each individual memory block, instead of combining memory blocks with similar attributes.
*-b*, *--bytes*::
-Print the SIZE column in bytes rather than in a human-readable format.
+include::man-common/in-bytes.adoc[]
*-h*, *--help*::
Display help text and exit.