OS Manuals

/usr/bin/bits

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running bits --help (exit 0). permalink

Usage:
 bits [options] [<mask_or_list>...]

Convert bit masks from/to various formats.

Arguments:
 <mask_or_list>      bits specified as a hex mask (e.g. 0xeec2)
                       or as a comma-separated list of bit IDs

 If not specified, arguments will be read from stdin.

Options:
 -h, --help          display this help
 -V, --version       display version
 -w <num>, --width <num>
                     maximum width of bit masks (default 8192)

Output modes:
 -m, --mask          display bits as a hex mask value (default)
 -g, --grouped-mask  display bits as a hex mask value in 32bit
                       comma separated groups
 -b, --binary        display bits as a binary mask value
 -l, --list          display bits as a compressed list of bit IDs

For more details see bits(1).
Options (7)
OptionDescriptionSource
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
-m, --maskdisplay bits as a hex mask value (default)help
-g, --grouped-maskdisplay bits as a hex mask value in 32bit comma separated groupshelp
-b, --binarydisplay bits as a binary mask valuehelp
-l, --listdisplay bits as a compressed list of bit IDshelp
-w, --width numberThe maximum number of bits in the masks handled by bits. (in the manual page but not in --help)man
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.