=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compress/compress.1,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/compress/compress.1 2003/06/30 03:42:05 1.20 +++ src/usr.bin/compress/compress.1 2003/07/17 20:06:01 1.21 @@ -1,4 +1,4 @@ -.\" $OpenBSD: compress.1,v 1.20 2003/06/30 03:42:05 millert Exp $ +.\" $OpenBSD: compress.1,v 1.21 2003/07/17 20:06:01 millert Exp $ .\" $NetBSD: compress.1,v 1.5 1995/03/26 09:44:34 glass Exp $ .\" .\" Copyright (c) 1986, 1990, 1993 @@ -47,26 +47,26 @@ .Nm compress .Op Fl LV .Nm compress -.Op Fl cdfghOqrtv123456789 +.Op Fl cdfghlOnNqrtv123456789 .Op Fl b Ar bits .Op Fl S Ar suffix .Op Fl o Ar filename .Op Ar .Nm uncompress -.Op Fl cfhqrtv +.Op Fl cfhlnNqrtv .Op Fl o Ar filename .Op Ar .Pp .Nm gzip .Op Fl LV .Nm gzip -.Op Fl cdfghOqrtv123456789 +.Op Fl cdfghlnNOqrtv123456789 .Op Fl b Ar bits .Op Fl S Ar suffix .Op Fl o Ar filename .Op Ar .Nm gunzip -.Op Fl cfhqrtv +.Op Fl cfhnNqrltv .Op Fl o Ar filename .Op Ar .Pp @@ -165,6 +165,53 @@ .Nm gzip . .It Fl h Print a short help message. +.It Fl l +List information for the specified compressed files. +The following information is listed: +.Bl -tag -width Ds -offset indent +.It compressed size +size of the compressed file +.It uncompressed size +size of the file when uncompressed +.It compression ratio +ratio of the difference between the compressed and uncompressed +sizes to the uncompressed size. +.It uncompressed name +name the file will be saved as when uncompressing +.El +.Pp +If the +.Fl v +option is specified, the following additional information is printed: +.Bl -tag -width Ds -offset indent +.It compression method +name of the method used to compress the file +.It crc +32-bit crc of the uncompressed file +.It "time stamp" +date and time corresponding to the last data modification time +(mtime) of the compressed file (if the +.Fl n +option is specified, the time stamp stored in the compressed file +is printed instead). +.El +.It Fl n +When compressing, do not save the original file name and time stamp. +This information is saved by default when the deflate scheme is used. +When uncompressing, do not restore the original file name and time stamp. +By default, the uncompressed file inherits the time stamp of the +compressed version and the uncompressed file name is generated by +stripping the +.Dq Z +or +.Dq gz +extension from the compressed file name. +.It Fl N +When compressing, save the original file name and time stamp in the +compressed file. +This information is saved by default when the deflate scheme is used. +When uncompressing or listing, use the time stamp and file name stored +in the compressed file, if any, for the uncompressed version. .It Fl 1...9 Use deflate scheme with compression factor of .Fl 1