Linux – How to show linux “cmp” command progress

comparisonlinuxprogress

Is there a way to show the progress when running the cmp command?

Comparing large files or partitions using cmp can take a while.

I have searched google and used man cmp, but failed to find any useful information.

With the 'dd' command for example executing

kill -USR1 [pid_of_dd]

makes dd output its status in the console.

Is there a way to make cmp do something similar?

Best Answer

You can use PipeViewer for this

pv firstfile | cmp -l secondfile > output
Related Question