In Linux/Unix based system, "md5sum" command can be used to print or check MD5 checksums of 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.
[root@Linux]# md5sum london_checklist.txt
d9dd94176d34c3aef83cab8d698a7a4a london_checklist.txt
[root@Linux]#
[root@Linux]#
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
Reviewed by Admin
on
15:02:00
Rating:
![Linux/Unix - How To Check MD5 Checksums (md5sum) Of File - CLI](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2KdvqUfPZ9e_tDFUNpgpCaMewcWc9mlavavMXDncoMT0YCt30J0m7VWyDNJ3QYwLAGaGeY2hdEn4wZ7gCvUA1GjcDn6l4ipqYfDEeLARWOObKBSG_VvqvCD7hCF-4hm9meOUxViVyPqel/s72-c/logo_linux_square.jpg)