Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • is sha1um a typo or an alias? Does sha1sum -c <(sha1sum myarchive.tar) work? It's a bit unfortunate that sha1sum does not print out which result it expected vs. which one it got, so you can only guess... Commented Jul 19, 2020 at 14:02
  • Sorry, sha1um was a typo on my part. sha1sum -c <(sha1sum myarchive.tar) validates correctly. Commented Jul 19, 2020 at 14:07
  • Are you in different directories (containing the same file names) or have you modified myarchive.tar between creating the checksum file and the test of it? Commented Jul 19, 2020 at 14:08
  • Same directory, same terminal session, commands executed one after another. No modifications whatsoever. Commented Jul 19, 2020 at 14:09
  • @x6herbius then either the checksum really changed or something happened to your myarchive.tar.sha1 file... make a new one then compare them with cmp -l or diff -u. or run it as sha1sum -c <(sha1sum myarchive.tar | tee myarchive.tar.tee) and see what's in the .tee file compared to .sha1 file Commented Jul 19, 2020 at 14:13