hash - Calculate file hashes

hash - Calculate file hashes


gsutil hash [-c] [-h] [-m] filename...


The hash command calculates hashes on a local file that can be used to compare with gsutil ls -L output. If a specific hash option is not provided, this command calculates all gsutil-supported hashes for the file.

Note that gsutil automatically performs hash validation when uploading or downloading files, so this command is only needed if you want to write a script that separately checks the hash for some reason.

If you calculate a CRC32c hash for the file without a precompiled crcmod installation, hashing will be very slow. See gsutil help crcmod for details.


-c Calculate a CRC32c hash for the file.
-h Output hashes in hex format. By default, gsutil uses base64.
-m Calculate a MD5 hash for the file.
이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.