sum man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

sum(1)				 User Commands				sum(1)

NAME
       sum - print checksum and block count for a file

SYNOPSIS
       sum [-r] [file...]

DESCRIPTION
       The   sum utility calculates and prints a 16-bit checksum for the named
       file and the number of 512-byte blocks in the  file.  It	 is  typically
       used  to	 look  for  bad spots, or to validate a file communicated over
       some transmission line.

OPTIONS
       The following options are supported:

       -r	Use an alternate (machine-dependent)  algorithm	 in  computing
		the checksum.

OPERANDS
       The following operands are supported:

       file	A  path	 name  of a file.  If no files are named, the standard
		input is used.

USAGE
       See largefile(5) for the	 description  of  the  behavior	 of  sum  when
       encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).

ENVIRONMENT VARIABLES
       See  environ(5) for descriptions of the following environment variables
       that affect the execution of  sum: LC_CTYPE, LC_MESSAGES, and  NLSPATH.

EXIT STATUS
       The following exit values are returned.

       0	Successful completion.

       >0	An error occurred.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       │Availability		     │SUNWesu			   │
       │CSI			     │enabled			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       cksum(1), sum(1B), wc(1), attributes(5), environ(5), largefile(5)

DIAGNOSTICS
       "Read error" is indistinguishable from end of  file  on	most  devices;
       check the block count.

NOTES
       Portable applications should use cksum(1).

       sum and usr/ucb/sum (see sum(1B)) return different checksums.

SunOS 5.10			  7 Nov 1995				sum(1)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net