Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man1/sum.1
Real path: /usr/share/man/man1/sum.1
Zurück
'\" te .\" Copyright (c) 1992, The X/Open Company Ltd. All rights reserved. .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 2009, 2020, Oracle and/or its affiliates. .\" Oracle gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. This notice shall appear on any product containing this material. .TH sum 1 "16 Jun 2020" "Oracle Solaris 11.4" "User Commands" .SH NAME sum \- print checksum and block count for a file .SH SYNOPSIS .LP .nf \fB/usr/bin/sum\fR [-r] [\fIfile\fR...] .fi .SH DESCRIPTION .sp .LP The \fBsum\fR lists the checksum for each of its file arguments. The standard input is read if there are no file arguments. .SH OPTIONS .sp .LP The following option is supported: .sp .ne 2 .mk .na \fB\fB-r\fR\fR .ad .RS 6n .rt Use an alternate (machine-dependent) algorithm in computing the checksum. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIfile\fR\fR .ad .RS 8n .rt A path name of a file. If no files are named, the standard input is used. .RE .SH ENVIRONMENT VARIABLES .sp .LP See \fBenviron\fR(7) for descriptions of the following environment variables that affect the execution of \fBsum\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .SH EXIT STATUS .sp .LP The following exit values are returned. .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 7n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB> 0\fR\fR .ad .RS 7n .rt An error occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os _ CSI Enabled .TE .sp .SH SEE ALSO .sp .LP \fBcksum\fR(1), \fBdigest\fR(1), \fBgetconf\fR(1), \fBwc\fR(1), \fBlibmd\fR(3LIB), \fBattributes\fR(7), \fBenviron\fR(7) .SH DIAGNOSTICS .sp .LP Read error is indistinguishable from end of file on most devices. Check the block count. .SH NOTES .sp .LP Portable applications should use \fBcksum\fR(1). The default algorithm for this command is defined in the POSIX standard and is identical across platforms. .sp .LP The \fBsum\fR command is typically used to quickly compare a suspect file against a trusted version of the same, such as to ensure that files transmitted over noisy media arrive intact. However, this comparison cannot be considered cryptographically secure. When compatibility with existing \fBsum\fR usage or values is not required, the \fBdigest\fR(1) command is recommended instead, as it provides more modern and secure algorithms. .sp .LP In previous releases of Solaris, there was a \fB/usr/ucb/sum\fR that returned a different checksum than the \fBsum\fR command described here due to different blocksizes and algorithms used. The command \fBsum\fR uses 512 byte block sizes while \fB/usr/ucb/sum\fR used 1024 byte block sizes.