PKZIP 6.0 Command Line User's Manual
Total Page:16
File Type:pdf, Size:1020Kb
PKZIP® 6.0 Command Line User’s Manual Copyright © 1997-2002 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. Portions of this software include RSA BSAFE ® cryptographic or security protocol software from RSA Security Inc. PKWARE, the PKWARE logo, the zipper logo, PKZIP, PKUNZIP, and PKSFX 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. RSA and BSAFE are registered trademarks of RSA Security Inc. ii Disclaimer Table of Contents WELCOME TO PKZIP...........................................................................................1 Overview: ..........................................................................................................................1 Sections in This Chapter:.................................................................................................1 Introduction ......................................................................................................................2 About This Manual...........................................................................................................2 Your Work Environment: The Command Line ............................................................3 Using Help .........................................................................................................................3 Getting License Information............................................................................................4 Getting Version Information ...........................................................................................5 Using PKWARE Technical Support...............................................................................6 Using Internet/Usenet.....................................................................................................6 Before You Call..............................................................................................................6 Calling a PKWARE Technical Support Representative.................................................7 Using the PKWARE Customer Support Form ...............................................................7 THE BASICS .......................................................................................................11 Overview: ........................................................................................................................11 Introduction ....................................................................................................................12 Using the Tutorials .........................................................................................................12 Conventions Used in the Tutorials ...............................................................................13 Using Sample Files and Directories..............................................................................13 Preparing Your Workspace...........................................................................................13 .ZIP File Naming Conventions ......................................................................................14 Compressing Files: Learning the Basics.......................................................................14 Compressing a Single File in the Current Directory.....................................................15 Table of Contents iii Compressing Selected Files in the Current Directory...................................................17 Compressing Files that Match a Pattern .......................................................................18 Compressing All Files in the Current Directory...........................................................19 Compressing Files from a Different Location ..............................................................20 Specifying a Different Location for the .ZIP File.........................................................21 Moving Files into Your .ZIP File .................................................................................23 Viewing Files Within a .ZIP File..................................................................................24 Further Information on Compressing Files...................................................................26 Extracting Files: Learning the Basics ...........................................................................26 Extracting a Single File From a .ZIP File.....................................................................27 Extracting Multiple Files From a .ZIP File...................................................................29 Overwriting Files that Already Exist in Your Directory...............................................34 Extracting Files to a Specified Directory......................................................................34 Further Information on Extracting Files .......................................................................35 Understanding PKZIP Commands and Options .........................................................35 Difference between a Command and Option................................................................36 Including an Option in Your Command Line...............................................................36 Abbreviating Commands and Options..........................................................................37 Combining Options.......................................................................................................37 Commands and Options That Contain Values..............................................................39 Commands and Options: Compression or Extraction?.................................................41 Setting Defaults ............................................................................................................41 What’s Next?...................................................................................................................41 COMPRESSING FILES.......................................................................................43 Introduction ....................................................................................................................44 Conventions in this Chapter..........................................................................................44 Default Values for Commands and Options .................................................................44 Compressing New and Existing Files............................................................................45 Compressing All Files in a Directory ...........................................................................45 Compressing New and Modified Files .........................................................................46 Compressing Only Files That Have Changed...............................................................47 Clearing Archive Attributes (WIN32, OS/2)................................................................47 Incremental Archiving (WIN32) ..................................................................................48 Compressing Files in Subdirectories.............................................................................49 iv Table of Contents Storing Directory Path Information .............................................................................49 Additional Methods for Storing Directory Path Information........................................50 Storing and Recreating Directory Path Information .....................................................52 Compressing Files with a LIST File..............................................................................54 Compressing Files Based on Some Criteria..................................................................55 Compressing Files Newer Than a Specified Date or Number of Days.........................55 Compressing Files Older Than a Specified Date or Number of Days ..........................56 Compressing Files Larger or Smaller than a Specified Size.........................................57 Including Files That Match a Pattern............................................................................57 Excluding Files from Being Compressed .....................................................................58 Compressing Files in a Specific Format .......................................................................59 Storing File Information ................................................................................................60 Compressing Files That Contain Certain Attributes (WIN32, OS/2) ...........................60 Compressing Files Based on File Type (UNIX)...........................................................63 Following Links (UNIX) ..............................................................................................64 Extended Attribute Storage...........................................................................................64