Categories
Linux System

Checking SHA256 Checksum One Line Command

Just do the following

cd /folder/path
echo "known_sha_code  filename"  | sha256 --check

yup, that’s it.

Example:

user@user-Linux:~$ echo "4ee9c3aa53329cd7...d362b4 Miniconda3-py39_4.11.0-Linux-x86_64.sh" | sha256sum --check
Miniconda3-py39_4.11.0-Linux-x86_64.sh: OK