oreilly.comSafari Books Online.Conferences.


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.


scanadf [options]

Control scanners with an automatic document feeder (ADF), which can return multiple documents. The images are written to output files specified by the --outputfile option. scanadf uses the SANE interface to access the scanner and can support any device for which there is a SANE backend.


-d device, --device-name device

Specify a SANE device name. The default is to attempt to open the first available device.

-e num, --end-count num

Specify the last page number to scan.

-h, --help

Print help message and exit. You can get device-specific help by running scanadf as follows:

scanadf -h -d device

-L, --list-devices

Display a list of available devices. The list may not be complete, particularly when accessing scanners across the network. Only scanners listed in a configuration file (typically in the directory /etc/sane.d) are displayed. A scanner with no configuration file entry must be accessed by its full device name.

-o string, --output-file string

Specify a format string used to generate the output filename. Use %d replacement to insert the current page number in the name. The default format string is image-%04d.

-r, --raw

Write raw image data to the output file without attempting to interpret it. Usually used together with --scan-script.

-s num, --start-count num

Specify the page number of the first scanned image.

-S name, --scan-script name

Specify the name of a script to run after each image is scanned.

-v, --verbose

Run in verbose mode, providing additional status messages.

-V, --version

Print version information and exit.

Linux Resources
  • Linux Online
  • The Linux FAQ
  • Linux Kernel Archives
  • Kernel Traffic

  • Sponsored by: