Is there a way to calculate a checksum on a string in Linux? The checksum commands that I have seen (cksum
, md5sum
, sha1sum
, etc.) all require a file as input and I do not have a file. I only have a path to a location and want to calculate the checksum on that path.
echo -n 'exampleString' | md5sum
should work.