Command Line Users Manual
Total Page:16
File Type:pdf, Size:1020Kb
Command Line Users Manual PKZIP® Command Line SecureZIP® Command Line Copyright © 1997-2011 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, SecureZIP, and PKSFX are registered trademarks of PKWARE, Inc. Deflate64 is a trademark of PKWARE, Inc. Trademarks of other companies mentioned in this documentation appear for identification purposes only and are the property of their respective companies. 2011-10-25 iii Table of Contents 1 THE BASICS ................................................................................................. 1 About This Manual ..................................................................................................... 1 Conventions in This Guide ........................................................................................ 2 An Overview of What PKZIP Does ............................................................................ 2 Supported Archive Types .......................................................................................... 2 Your Work Environment: The Command Line ......................................................... 3 Entering Commands .................................................................................................. 4 Creating a New Archive and Adding Files ............................................................... 5 Archive File Naming Conventions ............................................................................. 6 Adding a Single File .................................................................................................. 6 Adding Multiple Files ................................................................................................. 7 Moving Files into an Archive ..................................................................................... 8 Viewing Files in an Archive ....................................................................................... 8 Extracting Files from an Archive .............................................................................. 9 Extracting All Files .................................................................................................... 9 Extracting Some Files ............................................................................................... 9 Extracting Files to a Different Directory .................................................................. 10 Extracting New and Newer Files ............................................................................. 10 Using Filters When Selecting Files ......................................................................... 10 Selecting Files by Date ........................................................................................... 11 Selecting Files by Age ............................................................................................ 11 Selecting Files by Size ............................................................................................ 12 Selecting Files to Include or Exclude ...................................................................... 12 Understanding Commands and Options ............................................................... 13 Difference between a Command and Option.......................................................... 13 Including an Option in Your Command Line ........................................................... 14 Abbreviating Commands and Options .................................................................... 14 Using Multiple Options ............................................................................................ 14 Commands and Options with Values ...................................................................... 15 Using Strong Encryption ......................................................................................... 16 2 GETTING STARTED ................................................................................... 17 Learning More and Getting Help ............................................................................. 18 Using Help .............................................................................................................. 18 Getting Version Information .................................................................................... 18 Technical Support ................................................................................................... 19 Working With Your License ..................................................................................... 19 iv Entering License Keys ............................................................................................ 19 Setting PKZIP in the Path ........................................................................................ 20 3 ADDING FILES TO AN ARCHIVE .............................................................. 20 Default Values for Commands and Options .......................................................... 21 Creating and Updating Archives ............................................................................. 21 Adding All Files in a Directory ................................................................................. 21 Adding New and Modified Files .............................................................................. 21 Adding Only Files That Have Changed .................................................................. 22 Incremental Archiving ............................................................................................. 22 Encrypting Files That You Add to an Archive ....................................................... 23 Encrypting Files with a Passphrase ........................................................................ 24 Encrypting Files with a Recipient List ..................................................................... 25 Encrypting File Names ............................................................................................ 27 Encrypting Using Only FIPS-Approved Algorithms ................................................ 28 Accessing Recipients in an LDAP Directory ............. Error! Bookmark not defined. Contingency Keys ..................................................... Error! Bookmark not defined. Creating OpenPGP Files ........................................................................................ 30 Attaching Digital Signatures ................................................................................... 31 Commands and Options for Signing Archives ........................................................ 31 Setting a Default Certificate .................................................................................... 35 Time Stamping Your Signed ZIP Archive ............................................................... 35 Writing an Archive to STDOUT and Special Files ................................................. 36 Writing an Archive to STDOUT ............................................................................... 36 Writing an Archive to a Named Pipe ....................................................................... 37 Compressing Files in Subdirectories ..................................................................... 38 Compressing Open Files ......................................................................................... 38 Storing Directory Path Information ........................................................................ 39 Additional Methods for Storing Directory Path Information ..................................... 39 Storing and Recreating Directory Path Information ................................................ 40 Setting the Compression Level ............................................................................... 42 Specifying a Compression Level from 0-9 .............................................................. 42 Specifying a Compression Level by Name ............................................................. 43 Compressing Files with a List File ......................................................................... 44 Getting a List of Files from Standard Input ............................................................. 44 Compressing Files with the Deflate64 Method ...................................................... 45 Compressing Files with the BZIP2 Method ............................................................ 45 Compressing Files with the LZMA Method ............................................................ 45 Compressing Files Compatible with the Data Compression Library .................. 46 v Compressing Files with the PPMd Method ............................................................ 46 Compressing Files to a Specified Type of Archive ............................................... 46 Compressing Files to Diskette ...............................................................................