← 返回命令列表

Linux command

sha384sum 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Calculate the SHA-384 hash of a file

sha384sum [file]

Calculate SHA-384 hashes for multiple files

sha384sum [file1] [file2]

Verify checksums stored in a file

sha384sum -c [checksums.txt]

Verify checksums, only showing failures

sha384sum -c --quiet [checksums.txt]

Read from stdin

echo "[text]" | sha384sum

Generate a checksum and save to a file

sha384sum [file] > [checksums.sha384]

说明

sha384sum computes and verifies SHA-384 cryptographic hash values, producing a 384-bit (96-character hexadecimal) message digest. It is part of the SHA-2 family and is derived from SHA-512 with truncated output, offering a security level between SHA-256 and SHA-512. SHA-384 is commonly used in TLS/SSL certificates and digital signatures where stronger security than SHA-256 is desired without the full 128-character output of SHA-512. With no FILE argument or when FILE is -, input is read from standard input. In check mode (-c), previously generated checksums are verified against current file contents.

参数

-c, --check
Verify checksums from file.
-b, --binary
Read in binary mode.
-t, --text
Read in text mode.
--quiet
Don't print OK for verified files.
--status
Don't output anything; use exit status for result (0 = success, 1 = failure).
--strict
Exit non-zero for improperly formatted checksum lines.
-w, --warn
Warn about improperly formatted checksum lines.
--tag
Output BSD-style checksums.

FAQ

What is the sha384sum command used for?

sha384sum computes and verifies SHA-384 cryptographic hash values, producing a 384-bit (96-character hexadecimal) message digest. It is part of the SHA-2 family and is derived from SHA-512 with truncated output, offering a security level between SHA-256 and SHA-512. SHA-384 is commonly used in TLS/SSL certificates and digital signatures where stronger security than SHA-256 is desired without the full 128-character output of SHA-512. With no FILE argument or when FILE is -, input is read from standard input. In check mode (-c), previously generated checksums are verified against current file contents.

How do I run a basic sha384sum example?

Run `sha384sum [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --check do in sha384sum?

Verify checksums from file.