Alvin Sim's Blog

Generate MD5 Checksum On AIX

I have been looking for a command to generate MD5 checksum values on AIX 4 years ago. There was a need then to get the checksum values to compare if the files were the same. Then, I used the sum command.

Today, I found this command, csum. With this command, you can generate an MD5 or a SHA1 checksum.

The syntax is as below:

csum -h MD5 [filename]

 

Example:

csum -hMD5 .profile

Single Post Navigation

One thought on “Generate MD5 Checksum On AIX

  1. Jake on said:

    do you know why piping into csum gives a different value?
    Note: this file is less than 2GB, which has been a problem in the past.

    bash-4.3# csum -hMD5 testfile
    9834c2bfb45b1b36512f253080d1ecb1 testfile
    bash-4.3# cat testfile | csum -hMD5 –
    2398ff3d22f6de98c2c39b6479a4e431 –

Leave a comment