sha384sum
瑞兹 发表于 2020-12-04 13:19浏览次数:
所述sha384sum命令计算并检查一个SHA384加密的消息摘要。
The sha384sum command computes and checks a SHA384 encrypted message digest.
目录:
1 sha384sum 运行系统环境
2 sha384sum 描述
3 sha384sum 语法
4 sha384sum 例子
sha384sum 运行系统环境
sha384sum 描述
所述sha384sum命令显示或检查SHA384(384位)的校验和。如果没有FILE或FILE为-(破折号),则从标准输入读取消息摘要。
The sha384sum command displays or checks SHA384 (384-bit) checksums. With no FILE, or when FILE is - (a dash), the message digest is read from standard input.
sha384sum 语法
sha384sum [OPTION]... [FILE]...
选件
-b,--binary
|
以二进制模式读取。
|
-c,--check
|
从FILEs中读取SHA384总和并进行检查。
|
--tag
|
创建一个BSD样式的校验和。
|
-t,--text
|
以文本模式读取(默认)。
|
注意
GNU系统上的二进制和文本模式选项之间没有区别。
以下四个选项仅在验证校验和时才有用:
--quiet
|
不要为每个成功通过验证的文件打印“确定”。
|
--status
|
什么都不输出,状态码显示成功。
|
--strict
|
对于格式不正确的校验和行,请退出非零值。
|
-w,--warn
|
警告格式不正确的校验和行。
|
--help
|
显示此帮助并退出。
|
--version
|
输出版本信息并退出。
|
如FIPS-180-2中所述计算总和。检查时,输入应为该程序的先前输出。默认模式是打印带有校验和的行,一个指示输入模式的字符('*'表示二进制,文本表示空格)以及每个FILE的名称。
sha384sum [OPTION]... [FILE]...
Options
-b, --binary
|
Read in binary mode.
|
-c, --check
|
Read SHA384 sums from the FILEs and check them.
|
--tag
|
Create a BSD-style checksum.
|
-t, --text
|
Read in text mode (default).
|
Note
There is no difference between binary and text mode option on GNU system.
The following four options are useful only when verifying checksums:
--quiet
|
Don't print OK for each successfully verified file.
|
--status
|
Don't output anything, status code shows success.
|
--strict
|
Exit non-zero for improperly formatted checksum lines.
|
-w, --warn
|
Warn about improperly formatted checksum lines.
|
--help
|
Display this help and exit.
|
--version
|
Output version information and exit.
|
The sums are computed as described in FIPS-180-2. When checking, the input should be a former output of this program. The default mode is to print a line with checksum, a character indicating input mode ('*' for binary, space for text), and name for each FILE.
sha384sum 例子
sha384sum example.iso
运行上面的命令将在当前目录中提供example.iso文件的SHA384校验和。以下是一个完整的SHA384校验和后跟文件名的输出显示示例。
38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b example.iso
sha384sum example.iso
Running the above command would give the SHA384 checksum of the example.iso file in the current directory. Below is an example of how the output may appear with the full SHA384 checksum followed by the file name.
38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b example.iso