Chinaunix

标题: Solaris下的md5sum命令:digest [打印本页]

作者: crblue    时间: 2010-07-04 16:11
标题: Solaris下的md5sum命令:digest
众所周知,Linux下可以直接用md5sum命令来获得文件的MD5码。但是Solaris下并无md5sum命令。

今天特意查询了一下,找到Solaris下的替代命令:digest

具体用法大家man一下就可以了,不细说了。


User Commands                                           digest(1)

NAME
     digest - calculate a message digest

SYNOPSIS
     /usr/bin/digest -l | [-v] -a algorithm [file]...

DESCRIPTION
     The digest utility calculates  the  message  digest  of  the
     given  files or stdin using the algorithm specified. If more
     than one file is given, each line of output is the digest of
     a single file.

OPTIONS
     The following options are supported:

     -a algorithm    Specifies the name of the algorithm  to  use
                     during the encryption or decryption process.
                     See USAGE, Algorithms, for details.

     -l              Displays list of algorithms available on the
                     system.  This  list  can change depending on
                     the  configuration  of   the   cryptographic
                     framework.

     -v              Verbose output. Includes the algorithm  name
                     and filename in the output.
作者: easybegin    时间: 2010-07-04 18:13
好东西,收藏




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2