The blog provides Network Security Tips, Tricks, How To/Procedures. Products and areas not limited to Firewalls, Security, Check Point, Cisco, Nokia IPSO, Crossbeam, SecurePlatform, SPLAT, IP Appliance, GAiA, Unix/Linux.

Linux/Unix - How To Check MD5 Checksums (md5sum) Of File - CLI

In Linux/Unix based system, "md5sum" command can be used to print or check MD5 checksums of file.


Syntax:

md5sum [OPTION] [FILE]

Option:

With no FILE, or when FILE is -, read standard input.


  -b, --binary  read in binary mode
  -c, --check   read MD5 sums from the FILEs and check them
  -t, --text    read in text mode (default)

Note: There is no difference between binary and text mode option on GNU system.


Example:

[root@Linux]#
[root@Linux]# md5sum london_checklist.txt
d9dd94176d34c3aef83cab8d698a7a4a  london_checklist.txt
[root@Linux]#

[root@Linux]#


Linux/Unix - How To Check MD5 Checksums (md5sum) Of File - CLI Linux/Unix - How To Check MD5 Checksums (md5sum) Of File - CLI Reviewed by Admin on 15:02:00 Rating: 5