Forrest logo
back to context overview

cmp

List of commands for cmp:

  • cmp:ai:680f6 How can i check if 2 files have identical content ?
    $ cmp file1.txt file2.txt && echo 'Files are identical' || echo 'Files are different'
    try on your machine
    explain this command
  • cmp:tldr:45e91 cmp: Output char and line number of the first difference between two files.
    $ cmp ${filename1} ${filename2}
    try on your machine
    explain this command
  • cmp:tldr:9792d cmp: Compare files but output nothing, yield only the exit status.
    $ cmp --quiet ${filename1} ${filename2}
    try on your machine
    explain this command
  • cmp:tldr:ecc89 cmp: Output the byte numbers and values of every difference.
    $ cmp --verbose ${filename1} ${filename2}
    try on your machine
    explain this command
back to context overview