---
layout: page
category-page: intermediate
category-title: Intermediate commands
tags: sha sums check
author: Gianmarco De Vita
title: shasum
previous-page: pages/cmd/interm/
next-page: pages/cmd/interm/
---
With shasum
command you can work with SHA Checksums.
shasum [flag] [file]
-a
allows you to choose which algorithm to use when
defining the checksum of a file. The default algorithm is 1.
shasum -a algorithm file
-b
allows you to read files in binary mode.
shasum -b file.bin
-c
.
After storing the Checksums into two files (let say file1 and file2),
you can write to command as follows:
shasum -c shaSum1 shaSum2
-h
h flag will display a little
help paragraph with the main functions of this command.
shasum -h