sum prints a simple checksum and block count for a file. It is an older utility and is mostly useful when working with legacy scripts or older Unix-style examples.
Check a file
sum filename.txt
For modern file verification, prefer stronger tools such as sha256sum where available.
sha256sum filename.txt