SHA256SUM Commands Cheat Sheet

Here is a cli commands cheat sheet for SHA256SUM command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SHA256SUM command?

Add some data here

        # To compute hash (checksum) of :
sha256sum 

# To compute hash (checksum) from input text:
# Enter text in keyboard and finish by ctrl-D at beginning of line
sha256sum
Some text
^D

echo -n "Hello World" | sha256sum

# To verify if a hash (checksum) is correct if a hash-file is provided:
# sha256sum will go thru the files listed in .
# For each file it will look if it exists. If not, it will print an error.
# If it does exist it will compute the checksum and compare it with the hash 
# provided in the . If they match (good!) it
# will print "filename: OK". 
# If they don't match (warning, you might have been hacked), it will 
# print "filename: FAILED".
sha256sum --check 

# Same as above (but ignore missing files):
# This tells you if your file is an exact copy (OK) or has been 
# tampered with (FAILED) without bothering you with warnings about
# missing files
sha256sum --check --ignore-missing 
    

Check out the SHA256SUM command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list