Displaying usage information and man pages

To display a summary of usage information for any command-line program, type the command and the --help or -h option. For example, to see usage information for the adinfo command, type:

adinfo --help

The usage information includes a list of options and arguments, and a brief description of each option. For example, if you specify adinfo -h on the command line, the command displays the command-line syntax and a list of the valid options you can use when you execute adinfo commands, similar to the following:

usage: adinfo [options]
options:
  -u, --user user[@domain] user name, default is administrator
  -p, --password pw        user password, prompts if absent
  -s, --server ds          domain server for leave operations
  -Z, --zoneserver ds      domain server for zone operations
                           useful if zone is in another domain
  -C, --noconf             do not restore PAM or NSS config
  -G, --nogp               do not restore Group Policy
  -f, --force              force local leave, no network activity
  -v, --version            print version information
  -V, --verbose            print debug information for each operation
  -r, --remove             remove computer account from Active Directory
  -R, --restore            restore system configuration files without leaving
  -t, --reset              using the machine credentials, reset computer to
                           pre-created/unjoined state
  -h, --help               print this help information and exit

For more complete information about any command, you can review the information in the command’s manual (man) page. For example, to see the manual page for the adinfo command, type:

man adinfo