Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 10:22 pm


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Bookmark this article:

Author Message
debuser
Post  Post subject: Zip command to archive directory recursively  |  Posted: Sun May 09, 2010 12:16 pm

Joined: Thu Aug 06, 2009 9:48 am
Posts: 90

Offline
Save on Delicious
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).

Code:
$ zip -r directory.zip directory/


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "Zip command to archive directory recursively"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Openssl s_client command line: connect and diagnose an https server

LaR3

0

5932

Wed Aug 26, 2009 10:18 am

LaR3 View the latest post

There are no new unread posts for this topic. Invalid command 'AddHandler', perhaps misspelled or defined by a module not included in the server..

debuser

0

1861

Thu Jul 22, 2010 9:30 pm

debuser View the latest post

There are no new unread posts for this topic. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config

debuser

0

4428

Tue Jan 12, 2010 2:25 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot 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
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO