OS Manuals

/usr/bin/sg_get_config

sg3-utils dev

From sg3-utils-dev 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_get_config --help (exit 0). permalink

Usage:  sg_get_config [--brief] [--current] [--help] [--hex] [--inner-hex]
                      [--list] [--raw] [--readonly] [--rt=RT]
                      [--starting=FC] [--verbose] [--version] DEVICE
  where:
    --brief|-b       only give feature names of DEVICE (don't decode)
    --current|-c     equivalent to '--rt=1' (show current)
    --help|-h        print usage message then exit
    --hex|-H         output response in hex
    --inner-hex|-i    decode to feature name, then output features in hex
    --list|-l        list all known features + profiles (ignore DEVICE)
    --raw|-R         output in binary (to stdout)
    --readonly|-q    open DEVICE read-only (def: open it read-write)
    --rt=RT|-r RT    default value is 0
                     0 -> all feature descriptors (regardless of currency)
                     1 -> all current feature descriptors
                     2 -> only feature descriptor matching 'starting'
    --starting=FC|-s FC    starting from feature code (FC) value
    --verbose|-v     verbose
    --version|-V     output version string

Get configuration information for MMC drive and/or media
Options (12)
OptionDescriptionSource
--rt, -r RT|-rdefault value is 0 0 -> all feature descriptors (regardless of currency) 1 -> all current feature descriptors 2 -> only feature descriptor matching 'starting'help + man
--starting, -s FC|-sstarting from feature code (FC) valuehelp + man
-b, --briefshow the feature names but don't decode the parameters of those features. (in the manual page but not in --help)man
-c, --currentoutput features marked as current. (in the manual page but not in --help)man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-H, --hexoutput the response in hex (don't decode response). (in the manual page but not in --help)man
-i, --inner-hexdecode to the feature name level then output each feature's data in hex. (in the manual page but not in --help)man
-l, --listlist all known feature and profile names. (in the manual page but not in --help)man
-q, --readonlyopens the DEVICE read-only rather than read-write which is the default. (in the manual page but not in --help)man
-R, --rawoutput response in binary (to stdout). (in the manual page but not in --help)man
-v, --verboseincrease the level of verbosity, (i.e. debug output). (in the manual page but not in --help)man
-V, --versionprint the version string and then exit. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

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