You can use PipeViewer for this
pv firstfile | cmp -l secondfile > output
Gibt es eine Möglichkeit, den Fortschritt beim Ausführen des Befehls cmp anzuzeigen?
Der Vergleich großer Dateien oder Partitionen mit cmp kann eine Weile dauern.
Ich habe google gesucht und verwendet man cmp, konnte aber keine nützlichen Informationen finden.
Mit dem Befehl 'dd' zum Beispiel ausführen
kill -USR1 [pid_of_dd]
macht den Status von dd in der Konsole aus.
Gibt es eine Möglichkeit, mit cmp etwas Ähnliches zu tun?
You can use PipeViewer for this
pv firstfile | cmp -l secondfile > output
$ cmp -l firstfile secondfile & [1] pid_of_cmp $ ls -l /proc/pid_of_cmp/fd/ lrwx------ 1 user group 64 datetime 0 -> /dev/console lrwx------ 1 user group 64 datetime 1 -> /dev/console lrwx------ 1 user group 64 datetime 2 -> /dev/console lr-x------ 1 user group 64 datetime 3 -> /path/to/firstfile lr-x------ 1 user group 64 datetime 4 -> /path/to/secondfile $ cat /proc/pid_of_cmp/fdinfo/0 pos: 25952256 flags: 0100000 $ cat /proc/pid_of_cmp/fdinfo/1 pos: 122650624 flags: 0100000
Compare pos
to the size of the files.