Command Line Users Manual

Command Line

Users Manual

PKZIP? Command Line SecureZIP? Command Line

Copyright ? 1997-2010 PKWARE, Inc. All Rights Reserved.

No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any other language in whole or in part, in any form or by any means, whether it be electronic, mechanical, magnetic, optical, manual or otherwise, without prior written consent of PKWARE, Inc.

PKWARE, INC., DISCLAIMS ALL WARRANTIES AS TO THIS SOFTWARE, WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, FUNCTIONALITY, DATA INTEGRITY, OR PROTECTION. PKWARE IS NOT LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES.

PKWARE, the PKWARE logo, the zipper logo, PKZIP, PKUNZIP, PKSFX, and SecureZIP are registered trademarks of PKWARE, Inc.

Trademarks of other companies mentioned in this documentation appear for identification purposes only and are the property of their respective companies.

2010-04-28

iii

Table of Contents

1 WELCOME....................................................................................................1

Introduction................................................................................................................. 1 About This Manual ..................................................................................................... 1 Your Work Environment: The Command Line......................................................... 2 Entering Commands .................................................................................................. 2 Setting PKZIP in the Path .......................................................................................... 3 Strong Encryption ...................................................................................................... 4 Digital Signatures ....................................................................................................... 4 Special Compatibility Options (Win32) .................................................................... 5 Using Help ................................................................................................................... 6 Getting License Information...................................................................................... 6 Getting Version Information ...................................................................................... 7 Technical Support ...................................................................................................... 8

2 THE BASICS.................................................................................................9

An Overview of What PKZIP Does ............................................................................ 9 Supported Archive Types ........................................................................................ 10 Entering Commands: Syntax .................................................................................. 11 Adding Files to an Archive ...................................................................................... 12

Archive File Naming Conventions........................................................................... 13 Adding a Single File ................................................................................................ 14 Adding Multiple Files ............................................................................................... 14 Moving Files into an Archive ................................................................................... 16 Viewing Files in an Archive ..................................................................................... 16 Extracting Files from an Archive ............................................................................ 17 Extracting All Files .................................................................................................. 17 Extracting Some Files ............................................................................................. 17 Extracting Files to a Different Directory .................................................................. 17 Extracting New and Newer Files............................................................................. 18 Using Filters When Selecting Files......................................................................... 18

iv

Selecting Files by Date ........................................................................................... 18 Selecting Files by Age ............................................................................................ 19 Selecting Files by Size............................................................................................ 19 Selecting Files to Include or Exclude ...................................................................... 20

Understanding Commands and Options ............................................................... 21 Difference between a Command and Option.......................................................... 21 Including an Option in Your Command Line ........................................................... 22 Abbreviating Commands and Options .................................................................... 22 Using Multiple Options ............................................................................................ 22 Commands and Options That Have Values ........................................................... 23

Conventions in This Guide ...................................................................................... 23

3 ADDING FILES TO AN ARCHIVE .............................................................. 25

Default Values for Commands and Options .......................................................... 25

Creating and Updating Archives............................................................................. 25 Adding All Files in a Directory ................................................................................. 25 Adding New and Modified Files .............................................................................. 26 Adding Only Files That Have Changed .................................................................. 26 Clearing Archive Attributes ..................................................................................... 27 Incremental Archiving ............................................................................................. 27

Writing an Archive to STDOUT and Special Files ................................................. 28 Writing an Archive to STDOUT ............................................................................... 28 Writing an Archive to a Named Pipe....................................................................... 29

Encrypting Files That You Add to an Archive ....................................................... 30 Encrypting Files with a Passphrase ........................................................................ 31 Encrypting Files with a Recipient List (SecureZIP only) ......................................... 33 Encrypting File Names............................................................................................ 35 Encrypting Using Only FIPS-Approved Algorithms ................................................ 37 Accessing Recipients in an LDAP Directory ........................................................... 39 Contingency Keys ................................................................................................... 41

Working with Digital Signatures (SecureZIP only)................................................ 42

Compressing Files in Subdirectories ..................................................................... 47

Compressing Open Files ......................................................................................... 47

Storing Directory Path Information ........................................................................ 48 Additional Methods for Storing Directory Path Information..................................... 48 Storing and Recreating Directory Path Information ................................................ 49

Setting the Compression Level............................................................................... 51 Specifying a Compression Level from 0-9 .............................................................. 51 Specifying a Compression Level by Name ............................................................. 52

Compressing Files with a List File ......................................................................... 53 Getting a List of Files from Standard Input ............................................................. 54

Compressing Files with the Deflate64 Method...................................................... 54

v

Compressing Files with the BZIP2 Method............................................................ 55

Compressing Files with the LZMA Method............................................................ 55

Compressing Files Compatible with the Data Compression Library.................. 56

Compressing Files with the PPMd Method............................................................ 56

Compressing Files to a Specified Type of Archive............................................... 56

Compressing Files to Diskette ................................................................................ 57 Creating a Spanned Archive ................................................................................... 57 Creating a Split Archive .......................................................................................... 58

Preserving International Characters in File Names .............................................. 59

Creating Multiple, Respective Archives ................................................................. 59

Storing File Information ........................................................................................... 60 Compressing Files with Specified Attributes........................................................... 60 Extended Attribute Storage..................................................................................... 62

Including Additional Information in a ZIP File ....................................................... 63 Including a Text Comment ...................................................................................... 63 Including a Header Comment ................................................................................. 64 Specifying the Date of a .ZIP File ........................................................................... 64

Removing File Attributes ......................................................................................... 65

Sorting Files Within a .ZIP File ................................................................................ 66

Moving Files to a .ZIP File........................................................................................ 67

Shredding Deleted Files........................................................................................... 68

Working with Self-Extracting (PKSFX) Archives................................................... 69 Converting a Standard Archive to a Self-Extractor ................................................. 70 Converting to a Self-Extractor with a Different Name............................................. 70 Options for Creating Self-Extractors ....................................................................... 70 Run Programs with the Self-Extractor .................................................................... 72 Extraction Options for the Native Self-Extractor ..................................................... 73

4 EXTRACTING FILES ..................................................................................74

Default Values for Commands and Options .......................................................... 74

Extracting New and Existing Files .......................................................................... 74 Extracting All Files from an Archive ........................................................................ 75 Extracting Newer Versions of Existing Files and New Files ................................... 75 Extracting Only Newer Versions of Files ................................................................ 75

Extracting from an Archive Embedded in An Archive.......................................... 76

Extracting an Archive on STDIN or a Special File................................................. 76

vi

Extracting from an Archive on STDIN ..................................................................... 77 Extracting an Archive from a Named Pipe.............................................................. 77 Extracting to Dynamically Named Folders ............................................................ 78 Checking for Viruses when Extracting................................................................... 80 Extracting Files in Lower Case ............................................................................... 81 Preserving File Times .............................................................................................. 82 Retaining Directory Structure while Extracting..................................................... 82 Sorting Files in the Extract Directory ..................................................................... 82 Extracting Files Only for Display ............................................................................ 83 Extracting Files with a List File ............................................................................... 83 Authenticating Digital Signatures........................................................................... 83 Extracting Only Trusted Archives .......................................................................... 85 Specifying Trusted Signers ..................................................................................... 85

5 MISCELLANEOUS OPERATIONS ............................................................. 88

Overwriting Files ...................................................................................................... 88 Viewing the Contents of a .ZIP File......................................................................... 89

Displaying a Brief View of a .ZIP File...................................................................... 89 Displaying a Detailed View of the .ZIP File............................................................. 89 Translating End-of-Line Sequence ......................................................................... 90 Converting File Names to a Short Format ............................................................. 91 Inserting a Timestamp in the Archive File Name .................................................. 91 Printing the Contents of a .ZIP File......................................................................... 93 Testing the Integrity of an Archive ......................................................................... 93 Apply Strict Checking to Certificates ..................................................................... 94 Checking for Revoked Certificates ......................................................................... 94 Obtaining a CRL ..................................................................................................... 95 Pausing on Warnings ............................................................................................... 96 Treating Warnings as Errors ................................................................................... 97 Previewing Command and Option Operations...................................................... 97 Fixing a Corrupt .ZIP File ......................................................................................... 98

vii

Use an Alternate Drive for PKZIP Temporary Files............................................... 99 Suppressing Screen Output .................................................................................... 99 Setting Internal Attributes ..................................................................................... 100 Encoding an Archive to Another Type ................................................................. 100 Removing an Intermediate Archive ...................................................................... 101 Generate a List File ................................................................................................ 101

6 CHANGING DEFAULTS FOR COMMANDS AND OPTIONS ................... 103

Viewing Configuration Settings ............................................................................ 103 How Default Settings Work.................................................................................... 104 Filter Options .......................................................................................................... 105 Changing a Default Value ...................................................................................... 106

Changing Defaults for Filter Options..................................................................... 106 Changing Defaults for Compression Method........................................................ 107 Using the Options Dialog to Change Defaults ...................................................... 108 Resetting to Original Defaults ............................................................................... 108 Resetting Individual Defaults ................................................................................ 109 Resetting All Defaults............................................................................................ 109 Using an Alternate Configuration File .................................................................. 109 Creating an Alternate Configuration File............................................................... 109 Using an Alternate Configuration File ................................................................... 110

7 COMMAND CHARACTERISTICS............................................................. 111

Changing Date and Time Environment Variables ............................................... 111 Changing the List Character for List Files ........................................................... 112 Changing the Command/Option Character ......................................................... 112

A REFERENCE TO COMMANDS AND OPTIONS ....................................... 114

B ERROR AND WARNING MESSAGES...................................................... 163

Error Messages....................................................................................................... 163 Warning Messages ................................................................................................. 169

C FREQUENTLY ASKED QUESTIONS ....................................................... 175

viii

D HOW PKZIP WORKS................................................................................179

Two Processes ....................................................................................................... 179 Compression........................................................................................................... 179

Information Content .............................................................................................. 179 Binary Data Representation.................................................................................. 180 Speed vs. Size ...................................................................................................... 183 Archiving ................................................................................................................. 183 How PKZIP builds a .ZIP File ................................................................................. 183 CRC ...................................................................................................................... 185 Deleting Files from a .ZIP File ............................................................................... 186 Adding to an Existing .ZIP File.............................................................................. 186

INDEX ............................................................................................................. 187

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download