What is the easiest way to list all files in a directory with their hashes?
I am trying to compare a list of files in a folder. The problem is that all the file sizes are the same but I need to ensure that their content are the same too.
Powershell has a cmdlet named Get-FileHash
. One can just do a ls
and pipe the output to GetFileHash
eg. ls | Get-FileHash
You can also specify the hash algorithm by passing the -Algorithm parameter:
eg. ls | Get-FileHash -Algorithm MD5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With