Co robi CMP użycie. Konsola used for comparing binary files, although files can be of any type.

Czy przydatne?

Polecenie cmp

Wykonanie, użycie: Compare file1 with file2. Use standard input if file1 is - or missing. This command is normally used for comparing binary files, although files can be of any type. (See also diff.) skip1 and skip2 are optional offsets in the files at which the comparison is to start

Opcje wykonania cmp w konsoli

-c, --print-chars

Print differing bytes as characters.

-i num, --ignore-initial=num

Ignore the first num bytes of input.

-l, --verbose

Print offsets and codes of all differing bytes.

-s, --quiet, --silent

Work silently; print nothing, but return exit codes:

0

Files are identical.

1

Files are different.

2

Files are inaccessible.

Przykłady cmp działanie w Słownik polecenie C

Przykład CMP użycie :
Jak użyć uninstall your current crontab file. A privileged user can run crontab for another user by supplying -u user . A crontab file is a list of commands, one per line, that will execute automatically at a co znaczy.
Przykład CMP użycie :
Jak użyć or copy one or more files to the same names under directory . If the destination is an existing file, the file is overwritten; if the destination is an existing directory, the file is copied into krzyżówka.
Przykład CMP użycie :
Jak użyć See g co to jest.
Przykład CMP użycie :
Jak użyć one or more files and print them on standard output. Read standard input if no files are specified or if - is specified as one of the files; input ends with EOF. You can use the > operator to słownik.
Przykład CMP użycie :
Jak użyć attributes. Specific to Linux Second and Third Extended Filesystem (ext2 and ext3). Behaves similarly to symbolic chmod , using + , - , and = . mode is in the form opcode attribute . See also lsattr czym jest.