GNU file utilities - 2. Common options
2. Common options
Certain options are available in all these programs. Rather than writing identical descriptions for each of the programs, they are described here. (In fact, every GNU program accepts (or should accept) these options.)
- `--help'
- Print a usage message listing all available options, then exit successfully.
- `--version'
- Print the version number, then exit successfully.
2.1 Backup options
Some GNU programs (at least cp, mv, and ln)
optionally make backups of files before writing new versions. These
options control the details of these backups. The options are also
briefly mentioned in the descriptions of the particular programs.
- `-b'
- `--backup'
- Make backups of files that are about to be overwritten or removed. Without this option, the original versions are destroyed.
- `-S suffix'
- `--suffix=suffix'
-
Append suffix to each backup file made with `-b'. If this
option is not specified, the value of the
SIMPLE_BACKUP_SUFFIXenvironment variable is used. And ifSIMPLE_BACKUP_SUFFIXis not set, the default is `~', just as in Emacs. - `-V method'
- `--version-control=method'
-
Use method to determine the type of backups made with `-b'.
If this option is not specified, the value of the
VERSION_CONTROLenvironment variable is used. And ifVERSION_CONTROLis not set, the default backup type is `existing'. This option corresponds to the Emacs variable `version-control'; the same values for method are accepted as in Emacs. This options also more descriptive name. The valid methods (unique abbreviations are accepted):
Go to the first, previous, next, last section, table of contents.