1. Linux shell
sha1sum /etc/hosts
批量检测脚本
sha1.sh
#!/bin/bash sha1sum ./*
2. Windows cmd
certutil -hashfile C:\Windows\regedit.exe SHA1
3. Win10 powershell
Get-FileHash C:\Windows\regedit.exe -Algorithm SHA1| Format-List
批量检测脚本
sha1.ps1
Get-FileHash -Path .\*.* -Algorithm SHA1 | ForEach-Object { "{0,-45} {1,20}" -f $_.Hash, $_.Path } pause
网友评论