|
Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.
Author |
Message |
debuser
|
 |
Post subject: Linux - zip command to archive directory recursive | Posted: Sun May 09, 2010 5:16 am |
|
Joined: Thu Aug 06, 2009 2:48 am Posts: 105
|
Linux - zip command to archive directory recursive
Man zip: Quote: -r Travel the directory structure recursively; for example:
zip -r foo.zip foo
or a bit more concisely
zip -r foo foo
In this case, all the files and directories in foo are saved in a zip archive named foo.zip, including files with names starting with ".", since the recursion does not use the shell's file-name substitution mechanism. If you wish to include only a specific subset of the files in directory foo and its subdirectories, use the -i option to specify the pattern of files to be included. You should not use -r with the name ".*", since that matches ".." which will attempt to zip up the parent directory (proba- bly not what was intended).
ZIP command line recursive archivalCode: $ zip -r directory.zip directory/
|
|
|
|
|
|
Harespok
|
 |
Post subject: Re: Zip command to archive directory recursively | Posted: Sat Aug 04, 2012 8:03 am |
|
|
SYNOPSIS zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [-b path] [-n suffixes] [-t mmddyyyy] [-tt mmddyyyy] [ zipfile [ file1 file2 ...]] [-xi list]
zipcloak [-dhL] [-b path] zipfile
zipnote [-hwL] [-b path] zipfile
zipsplit [-hiLpst] [-n size] [-b path] zipfile DESCRIPTION zip is a compression and file packaging utility for the Unix, VMS, MSDOS, OS / 2, Windows NT, the Minix, Atari and Macintosh, Amiga and Acorn RISC OS.
|
|
|
|
|
|
Users browsing this forum: No registered users and 1 guest |
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
 News Site map SitemapIndex RSS Feed Channel list
|
|