Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Makisupa Policeman

macrumors 6502a
Original poster
Sep 28, 2021
522
386
I know the Terminal command for validating folder contents with md5:
find -s ~/Desktop/folder1 -type f -exec md5sum {} \; | md5sum

Is there a similar way to do this using sha? It doesn’t seem to work by simply replacing “md5” with “sha” in the command, but I’m not very familiar with using the Terminal.
 
Replace the word md5sum with shasum


edit:
hmm... if you tried that and it didn't work (I would have thought it should, unless the shasum and md5sum utilities operate differently).... are you bound to the terminal? if not, you can create a shortcut for this

Screen Shot 2022-04-24 at 9.13.50 am.png
 
  • Like
Reactions: Makisupa Policeman
Alternatively

$ cd folder1
$ shasum *


output similar to this:

Bash:
jrose@Jethros-MacBook-Pro-14 ~ % cd Downloads
jrose@Jethros-MacBook-Pro-14 Downloads % shasum *
973cd769848f002aa7e112ba1a399736843ecb5f  0001 Index of Published Guides.txt
101b34d6d4440cb831ab381b790ffc55da1e4233  0040611485FX01_20220221.csv
2d9c2c32b02c0cb017670db793e5897d6dc64cfe  17652f756b792aa408915bbf28a65761bb892fd1_2_437x550.jpeg
4829730e9fbd78da237c2879649d22726a575c05  19-12.jpg.pro-cmg.jpg.webp
 
  • Like
Reactions: Makisupa Policeman
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.