Options (7)
-i, --infilebooleanRead data from `IFILE` instead of `stdin`
Example:
sg_raw {{[-i|--infile]}} {{path/to/IFILE}} {{/dev/sgX}} {{SCSI_command}}-k, --skipbooleanSkip the first `LEN` bytes of input data
Example:
sg_raw {{[-k|--skip]}} {{LEN}} {{/dev/sgX}} {{SCSI_command}}-s, --sendbooleanRead `SLEN` bytes of data and send to the device
Example:
sg_raw {{[-s|--send]}} {{SLEN}} {{/dev/sgX}} {{SCSI_command}}-t, --timeoutbooleanWait up to `SEC` seconds for `sg_raw` to finish processing
Example:
sg_raw {{[-t|--timeout]}} {{SEC}} {{/dev/sgX}} {{SCSI_command}}-v, --verbosebooleanIncrease verbosity level by 1
Example:
sg_raw {{[-v|--verbose]}} {{/dev/sgX}} {{SCSI_command}}-b, --binarybooleanDump returned data in binary form
Example:
sg_raw {{[-b|--binary]}} {{/dev/sgX}} {{SCSI_command}}-o, --outfilebooleanWrite data received from the specified device to an `OFILE`
Example:
sg_raw {{[-o|--outfile]}} {{path/to/OFILE}} {{/dev/sgX}} {{SCSI_command}}Examples (8)
Send a command to an optical SCSI device assigned to `sr0` to load the media in its tray
sg_raw /dev/sr0 EA 00 00 00 00 01Read data from `IFILE` instead of `stdin`
sg_raw [-i|--infile] path/to/IFILE /dev/sgX SCSI_commandSkip the first `LEN` bytes of input data
sg_raw [-k|--skip] LEN /dev/sgX SCSI_commandRead `SLEN` bytes of data and send to the device
sg_raw [-s|--send] SLEN /dev/sgX SCSI_commandWait up to `SEC` seconds for `sg_raw` to finish processing
sg_raw [-t|--timeout] SEC /dev/sgX SCSI_commandIncrease verbosity level by 1
sg_raw [-v|--verbose] /dev/sgX SCSI_commandDump returned data in binary form
sg_raw [-b|--binary] /dev/sgX SCSI_commandWrite data received from the specified device to an `OFILE`
sg_raw [-o|--outfile] path/to/OFILE /dev/sgX SCSI_commandmade by @shridhargupta | data from tldr-pages