Usage: sha1sum [OPTION]... [FILE]...
Print or check SHA1 (160-bit) checksums.
With no FILE, or when FILE is -, read standard input.
-b, --binary read in binary mode
-c, --check read SHA1 sums from the FILEs and check them
-t, --text read in text mode (default)
Note: There is no difference between binary and text mode option on GNU system.
The following three 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
-w, --warn warn about improperly formatted checksum lines
--help この使い方を表示して終了
--version バージョン情報を表示して終了
チェックサムは FIPS-180-1 に記されている通りに計算されます. 照合の際に入力
するファイルは, このプログラムによって出力された形式でなければなりません.
特にオプションを指定しないで実行した場合には, それぞれのファイル毎に
チェックサム, タイプに関する印(バイナリには `*', テキストには ` '),
及びファイル名を表示します.
Report sha1sum bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: sha1sum [OPTION]... [FILE]...
Print or check SHA1 (160-bit) checksums.
With no FILE, or when FILE is -, read standard input.
-b, --binary read in binary mode
-c, --check read SHA1 sums from the FILEs and check them
-t, --text read in text mode (default)
Note: There is no difference between binary and text mode option on GNU system.
The following three 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
-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-1. 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 type (`*' for binary, ` ' for
text), and name for each FILE.
Report sha1sum bugs to bug-coreutils@gnu.org
GNU coreutils home page:
NL(1) NL(1)
名前
sha1sum - SHA1 ハッシュチェックサムの計算と検証を行う
書式
sha1sum [-bctw] [--binary] [--check] [--status] [--text] [--warn]
[FILE...]
sha1sum [--help] [--version]
説明
sha1sum は FILE の SHA1 チェックサムの出力と検証を FIPS-180-1 に基づ い
て行う。 FILE が省略された場合、または ‘-’ が指定された場合は、標準入力
が使われる。
計算したチェックサムを出力するときのフォーマットは、各入力ファイル FILE
に つ いて「SHA1 チェックサム・スペース・ファイルタイプ文字 (バイナリは
‘*’、テキストは ‘ ’)・ファイル名」となっている。これは --check が想定す
るフォーマットである。
オプション
-b, --binary
入力ファイル FILE をバイナリモードで読み込む。 Unix システムでは
バイナリファイルとテキストファイルを区別しないので、このオプショ
ン は何も影響を及ぼさない。 DOS プラットフォーム上では、これがデ
フォルトである。
-c, --check
指定された FILE からファイル名とチェックサムを読み込み、各ファイ
ル と 対 応 す る チ ェックサムが正しいかを報告する。 --check は
sha1sum の出力と同じフォーマットを想定する。
例:
sha1sum *.sha1 > checksums.sha1
sha1sum --check checksums.sha1
- , --text
入力ファイル FILE をテキストモードで読み込む。
-w, --warn
フォーマットが間違っているエントリに警告を出す。 --check とと も
に使うときにのみ機能する。
--status
表示を抑制し、ステータスコードを返して終了する。警告とチェックサ
ムの不一致は省略されるが、ファイルのオープンや読み込みといった操
作 におけるエラーは表示される。正常終了コード 0 は、全てのチェッ
クを通過してエラーが起らなかった場合にのみ返される。それ以外の場
合は、0 以外の値が返される。
--help 標準出力に使用方法のメッセージを出力して正常終了する。
--version
標準出力にバージョン情報を出力して正常終了する。
注意
バグは bug-textutils@gnu.org へ報告してください。
こ の man ページは Ragnar Hojland Espinosa
SHA1SUM(1) User Commands SHA1SUM(1)
NAME
sha1sum - compute and check SHA1 message digest
SYNOPSIS
sha1sum [OPTION]... [FILE]...
DESCRIPTION
Print or check SHA1 (160-bit) checksums. With no FILE, or when FILE is
-, read standard input.
-b, --binary
read in binary mode
-c, --check
read SHA1 sums from the FILEs and check them
-t, --text
read in text mode (default)
Note: There is no difference between binary and text mode option
on GNU system.
The following three 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
-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-1. 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 type (‘*’ for
binary, ‘ ’ for text), and name for each FILE.
AUTHOR
Written by Ulrich Drepper, Scott Miller, and David Madore.
REPORTING BUGS
Report sha1sum bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa