diff

The diff command compares one file to another.

Command Format

diff [from] [to]

where:

from file where to compare
to file where to comapre to

Functional description

The diff command is used to copy one file to another displaying any difference.The from and to file may be either a file on a filesystem, a device or a file on a tftp server.

Environment

The diff command uses no environment variable.

See Also

The cp command.