Command Line Users Manual - CacheFly

2y ago
28 Views
2 Downloads
854.98 KB
196 Pages
Last View : 25d ago
Last Download : 3m ago
Upload by : Kamden Hassan
Transcription

Command LineUsers ManualPKZIP Command LineSecureZIP 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 beelectronic, mechanical, magnetic, optical, manual or otherwise, without prior written consent ofPKWARE, Inc.PKWARE, INC., DISCLAIMS ALL WARRANTIES AS TO THIS SOFTWARE,WHETHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,FUNCTIONALITY, DATA INTEGRITY, OR PROTECTION. PKWARE IS NOT LIABLE FORINCIDENTAL OR CONSEQUENTIAL DAMAGES.PKWARE, the PKWARE logo, the zipper logo, PKZIP, PKUNZIP, SecureZIP, and PKSFXare registered trademarks of PKWARE, Inc. Deflate64 is a trademark of PKWARE, Inc.Trademarks of other companies mentioned in this documentation appear for identificationpurposes only and are the property of their respective companies.2011-10-25

iiiTable of Contents1THE BASICS . 1About This Manual . 1Conventions in This Guide . 2An Overview of What PKZIP Does . 2Supported Archive Types . 2Your Work Environment: The Command Line. 3Entering Commands . 4Creating a New Archive and Adding Files . 5Archive File Naming Conventions . 6Adding a Single File . 6Adding Multiple Files . 7Moving Files into an Archive . 8Viewing Files in an Archive . 8Extracting Files from an Archive . 9Extracting All Files . 9Extracting Some Files . 9Extracting Files to a Different Directory . 10Extracting New and Newer Files . 10Using Filters When Selecting Files . 10Selecting Files by Date . 11Selecting Files by Age . 11Selecting Files by Size . 12Selecting Files to Include or Exclude . 12Understanding Commands and Options . 13Difference between a Command and Option. 13Including an Option in Your Command Line . 14Abbreviating Commands and Options . 14Using Multiple Options . 14Commands and Options with Values . 15Using Strong Encryption . 162GETTING STARTED . 17Learning More and Getting Help . 18Using Help . 18Getting Version Information . 18Technical Support . 19Working With Your License . 19

ivEntering License Keys . 19Setting PKZIP in the Path . 203ADDING FILES TO AN ARCHIVE . 20Default Values for Commands and Options . 21Creating and Updating Archives . 21Adding All Files in a Directory . 21Adding New and Modified Files . 21Adding Only Files That Have Changed . 22Incremental Archiving . 22Encrypting Files That You Add to an Archive . 23Encrypting Files with a Passphrase . 24Encrypting Files with a Recipient List . 25Encrypting File Names . 27Encrypting Using Only FIPS-Approved Algorithms . 28Accessing Recipients in an LDAP Directory . Error! Bookmark not defined.Contingency Keys . Error! Bookmark not defined.Creating OpenPGP Files . 30Attaching Digital Signatures . 31Commands and Options for Signing Archives . 31Setting a Default Certificate . 35Time Stamping Your Signed ZIP Archive . 35Writing an Archive to STDOUT and Special Files . 36Writing an Archive to STDOUT . 36Writing an Archive to a Named Pipe . 37Compressing Files in Subdirectories . 38Compressing Open Files . 38Storing Directory Path Information . 39Additional Methods for Storing Directory Path Information . 39Storing and Recreating Directory Path Information . 40Setting the Compression Level . 42Specifying a Compression Level from 0-9 . 42Specifying a Compression Level by Name . 43Compressing Files with a List File . 44Getting a List of Files from Standard Input . 44Compressing Files with the Deflate64 Method . 45Compressing Files with the BZIP2 Method. 45Compressing Files with the LZMA Method . 45Compressing Files Compatible with the Data Compression Library . 46

vCompressing Files with the PPMd Method . 46Compressing Files to a Specified Type of Archive . 46Compressing Files to Diskette . 47Creating a Spanned Archive . 47Creating a Split Archive . 47Preserving International Characters in File Names . 48Creating Multiple, Respective Archives . 49Storing File Information . 50Compressing Files with Specified Attributes. 50Extended Attribute Storage . 51Including Additional Information in a ZIP File . 52Including a Text Comment . 52Including a Header Comment . 53Specifying the Date of a .ZIP File . 53Removing File Attributes . 54Sorting Files Within a .ZIP File . 55Moving Files to a .ZIP File. 56Shredding Deleted Files . 56Working with Self-Extracting (PKSFX) Archives . 57Converting a Standard Archive to a Self-Extractor . 58Converting to a Self-Extractor with a Different Name . 59Options for Creating Self-Extractors . 59Run Programs with the Self-Extractor . 61Extraction Options for the Native Self-Extractor . 614EXTRACTING FILES . 63Default Values for Commands and Options . 63Extracting New and Existing Files . 63Extracting All Files from an Archive . 63Extracting Newer Versions of Existing Files and New Files . 64Extracting Only Newer Versions of Files . 64Checking for Viruses when Extracting . 64Extracting from an Archive Embedded in an Archive . 65Extracting Passphrase-Protected Files . 66Extracting an Archive on STDIN or a Special File . 67Extracting from an Archive on STDIN . 67Extracting an Archive from a Named Pipe . 67

viExtracting Files in Lower Case . 70Preserving File Times . 70Retaining Directory Structure while Extracting. 70Retaining Zone Identifier Information for Downloaded Files . 71Sorting Files in the Extract Directory . 71Extracting Files Only for Display . 72Extracting Files with a List File . 72Authenticating Digital Signatures . 72Extracting Only Trusted Archives . 74Specifying Trusted Signers . 745WORKING WITH DIGITAL SIGNATURES. 76Public-Key Infrastructure and Digital Certificates . 76Public-Key Infrastructure (PKI) . 77How the Keys Are Used . 77X.509 . 77Digital Certificates . 77Certificate Authority (CA) . 78Private Key . 78Public Key . 78Certificate Authority and Root Certificates . 78Using Digital Signatures . 78Attaching a Signature to an Existing Archive . 79Applying Strict Checking to Certificates . 79Checking for Revoked Certificates . 80Using Digital Certificates on Windows . 81Advanced Encryption Options in Windows . 83Working with OpenPGP Files . 84Overview: OpenPGP vs. X.509 . 84Setting Up OpenPGP Keyrings . 85Configuring Other OpenPGP Settings . 866MISCELLANEOUS OPERATIONS . 87Overwriting Files . 87Viewing the Contents of a ZIP File . 88Displaying a Brief View of a ZIP File . 88Displaying a Detailed View of the ZIP File . 88Translating End-of-Line Sequence . 89Converting File Names to a Short Format . 90

viiInserting a Timestamp in the Archive File Name . 90Printing the Contents of a ZIP File . 92Testing the Integrity of an Archive . 92Pausing on Warnings . 93Treating Warnings as Errors . 93Previewing Command and Option Operations . 94Fixing a Corrupt ZIP File . 95Use an Alternate Drive for PKZIP Temporary Files . 95Suppressing Screen Output . 96Setting Internal Attributes . 96Encoding an Archive to Another Type . 97Removing an Intermediate Archive . 97Generate a List File . 987CHANGING DEFAULTS FOR COMMANDS AND OPTIONS . 99Viewing Configuration Settings . 99How Default Settings Work. 100Filter Options . 101Changing a Default Value . 102Changing Defaults for Filter Options . 102Changing Defaults for Compression Method . 102Using the Options Dialog to Change Defaults . 103Resetting to Original Defaults . 104Resetting Individual Defaults . 104Resetting All Defaults . 105Using an Alternate Configuration File . 105Creating an Alternate Configuration File. 105Using an Alternate Configuration File . 1058COMMAND CHARACTERISTICS . 107Changing Date and Time Environment Variables . 107Changing the List Character for List Files . 107Changing the Command/Option Character . 108

viiiA REFERENCE TO COMMANDS AND OPTIONS . 109B ERROR AND WARNING MESSAGES . 162Error Messages . 162Warning Messages . 167C FREQUENTLY ASKED QUESTIONS . 173D HOW PKZIP WORKS. 176Two Processes . 176Compression . 176Information Content . 176Binary Data Representation . 177Speed vs. Size . 179Archiving . 179How PKZIP builds a .ZIP File . 180CRC . 182Deleting Files from a .ZIP File . 182Adding to an Existing .ZIP File . 183

11The BasicsWelcome to PKZIP Command Line and SecureZIP for Windows Command Line.PKZIP Command Line and SecureZIP for Windows Command Line provide acommand-line interface to PKZIP/SecureZIP for use in creating scripts and batchfiles. With Command Line, you execute PKZIP/SecureZIP commands and options byentering them at a character-based command prompt and running the resultingcommand line.Command Line supports the full range of compression and archiving features of thegraphical PKZIP for Windows Desktop and SecureZIP for Windows Desktop.SecureZIP Command Line also supports both traditional ZIP encryption and strongencryption using digital certificates. Both PKZIP and SecureZIP Command Linedecrypt files encrypted with any other version of SecureZIP or PKZIP andauthenticates digital signatures attached to archives and archived files.This chapter will get you quickly up and running. After a brief overview of the manualand basic PKZIP concepts, you’ll learn how to create ZIP archives and extract (unzip)files from archives. After covering the basic commands, you can get a taste of thepower contained within PKZIP command options.About This ManualThis manual describes how to use both PKZIP and SecureZIP Command Line.SecureZIP Command Line contains a superset of the commands and options ofPKZIP Command Line. In general, references to PKZIP in the text apply equally toSecureZIP. If a feature has special requirements or comes only with speciallicensing, this is noted in the text.The chapters group related commands and options and describe how to use them.This chapter provides an overview of basic program features. See in particular thesection “Understanding Commands and Options” for an explanation of howcommands and options work.You can customize the default behavior of most commands and options. Chapter 7describes how.Appendix A contains a complete reference to the commands and options of theprogram. Experienced users may find that this appendix contains most of theinformation they need.

2Conventions in This GuideMost commands and options discussed in the following chapters work on allplatforms that PKZIP supports. The cases are noted where a command or option isspecific to a platform or operating system.The name of a command or option appears by itself in bold italic fontimmediately under the main heading of the section where the command or option isdiscussed. In sections devoted to a particular sub-option, or value, of a command oroption, the command or option is followed by an equals sign ( ) and the name of thesub-option—for example, extract all.An Overview of What PKZIP DoesPKZIP was developed to handle two basic tasks: It collects (adds) files into acontainer called an archive, and it pulls out (extracts) files from archives to restorethem to their original state. The PKZIP add command is used to add files, and theextract command extracts them. These are the two most important PKZIPcommands.When PKZIP adds files to a specified archive, it creates the archive if it does notalready exist. Generally, PKZIP compresses the added files so that they take lessspace, and it can also encrypt them so that they cannot be read by anyone who lacksthe means to decrypt them.As the creator of an archive, you control how its files are to be decrypted and bywhom. You can encrypt files using a passphrase, such that the passphrase isrequired to decrypt them, or, if you have SecureZIP, you can use digital certificates toencrypt them such that only designated recipients can decrypt. SecureZIP alsoenables you to digitally sign files that you add to an archive, and the archive itself. Adigital signature assures that the files really come from you.Compression, encryption, and signing are done when you add files. When youextract files, PKZIP decrypts the files, decompresses them, and validates any digitalsignatures.Most PKZIP options relate to the two main operations of adding and extracting filesand are for optional use when you do one of those things. For example, besides theoptions to encrypt or sign files, there are options for picking the files that you want tocompress or encrypt and options for how you want to compress or encrypt them.Commands are also available for managing archives—for example, for testing theirintegrity and viewing their contents.Supported Archive TypesAn archive is a kind of file that can contain other files. Several types of archive filesexist. Some can contain only one file, some can contain multiple files, and there canbe other differences as well. A ZIP archive can contain multiple compressed files.This is the kind of archive that PKZIP creates by default and is the kind that you willprobably use most often. Encryption and digital signing are supported only for ZIPand OpenPGP archives.PKZIP enables you to create and extract from many other archive types besides ZIP.You do not need to do anything special to use PKZIP with one of these other archivetypes. PKZIP can tell what type an archive is and will just go ahead and extract itsfiles. If you want to create a new, non-ZIP archive, there are two ways to tell PKZIPwhat type of archive to create:

3 Specify a name for the archive file that uses the file name extensioncommonly associated with that archive type Use the archivetype option to specify the type of archive that you wantThe following table lists the types of archives that PKZIP can create or extract fromand the file name extensions customarily associated with these types. For somearchive types, PKZIP can do extractions but cannot create new archives of that type.Archive typePKZIP can create/extractUsual file nameextensions7ZipExtract only.7zARJExtract only.arjBinHexExtract only.hqxBZIP2Create and extract.bz2CABExtract only.cab(Not supported on UNIX)CDRExtract only.cdrcompress (UNIX, LZW)Extract only.ZGZIPCreate and extract.gzIMGExtract only.imgISOExtract only.isoJARCreate and extract.jar, .ear, .warLZHExtract only.lzhOpenPGPCreate and extract.pgp, .gpgRARExtract only.rarTARCreate and extract.tarUUEncodedCreate and extract.uueXXEncodedCreate and extract.xxeZIPCreate and extract.zip, .zipxYour Work Environment: The Command LineIn PKZIP Command Line, your work area is a character-based command line, orshell. You enter a command by typing the command on the command line; to executethe command, you press Enter.To display a command line prompt in Windows, do one of the following: Choose Command Prompt from the list of programs in the Start menu

4 Choose Run from the Start menu, enter cmd in the field, and choose OK.Entering CommandsThe syntax for commands entered on the command line is shown below. Bracketsset off elements that are optional (Do not type the brackets.). Note that both PKZIPand SecureZIP Command Line use the same program name, pkzipc, as shownbelow.pkzipc [command] [options] zipfile [@list] [files.]Examples:To do thisCommand lineAdd specifiedfiles to anarchivepkzipc -add zipfile.zip addfile.txt addfile2.docAdd to an archiveall files incurrent directorypkzipc -add zipfile.zipor:pkzipc -add zipfile.zip *Add to an archiveall files in aspecifieddirectorypkzipc -add zipfile.zip subdir\*Add files with thefast compressionoptionpkzipc -add -fast zipfile.zipView list of filesin archivepkzipc zipfile.zipView list of fileswhose names beginwith "f" inarchivepkzipc zipfile.zip f*Extract all filesfrom an archivepkzipc -extract zipfile.zipExtract specifiedfiles from anarchivepkzipc -extract zipfile.zip readme.txt mystuff.doc

5A PKZIP command line has these main elements: The name of the program executable—pkzipc. This command runsPKZIP and must appear first. A PKZIP command fo

Oct 25, 2011 · PKZIP Command Line and SecureZIP for Windows Command Line provide a command-line interface to PKZIP/SecureZIP for use in creating scripts and batch files. With Command Line, you execute PKZIP/SecureZIP commands and options by entering them at a character-based command prompt and running the resulting

Related Documents:

Command Library - String Operation Command Command Library - XML Command Command Library - Terminal Emulator Command (Per Customer Interest) Command Library - PDF Integration Command Command Library - FTP Command (Per Customer Interest) Command Library - PGP Command Command Library - Object Cloning

Other Shortcut Keys 28 Command Line Reference 30 Information for DaRT Notes Users 32 . Open command 39 Save command 39 Save As command 39 Close command 39 Recent Files command 39 Clear MRU List command 40 Remove Obsolete command 40 Auto Save command 40 Properties comman

Type the desired command or the command‟s alias at the command prompt. Command : LINE Command: L 2. Press ENTER on the keyboard. 3. Type an option at the command prompt. TIP: Many AutoCAD commands require you to press ENTER to complete the command. You know you are no longer in an AutoCAD command when you see a blank command line.

Compute Command Line Profiler DU-05982-001_v03 4 COMPUTE COMMAND LINE PROFILER OVERVIEW This document is intended for users of Compute Command Line Profiler for NVIDIA CUDATM technology. Compute Command Line Profiler is a command line based profiling tool that can be used to measure performance and find potential opportunities for

SICOM Series CLI Command Manual 6 Chapter 1 CLI Command Introduction This chapter mainly introduces how to configure SICOM series Industrial Ethernet Switch by CLI command and the instructions of command set. 1.1 Login the Switch 1.1.1 Command Line User can log in command line via serial port or Telnet.

Command-line Operations This section contains reference topics related to command-line operations. In This Section Bulk Check-out Utility Command-line Options This topic describes the command-line options for the Bulk Check-out utility. starteamserver Command Parameters Describes and provides examples of the options used with the starteamserver .

features of the graphical SecureZIP for Windows Desktop. SecureZIP Command Line also supports both traditional ZIP encryption and strong encryption. SecureZIP Command Line decrypts files encrypted with any other version of SecureZIP or PKZIP and authenticates digital signatures attached to archives and archived files. About This ManualFile Size: 706KBPage Count: 187

The most popular agile methodologies include: extreme programming (XP), Scrum, Crystal, Dynamic Sys-tems Development (DSDM), Lean Development, and Feature Driven Development (FDD). All Agile methods share a common vision and core values of the Agile Manifesto. Agile Methods: Some well-known agile software development methods include: Agile .