Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Jun 06, 2023 9:17 am


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

Author Message
debuser
Post  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

Offline
 

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 archival


Code:
$ zip -r directory.zip directory/





Top
Harespok
Post  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.


Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Linux - zip command to archive directory recursive"
 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

5603

Wed Aug 26, 2009 3: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

5418

Thu Jul 22, 2010 2: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

4681

Tue Jan 12, 2010 7:25 am

debuser View the latest post

There are no new unread posts for this topic. Linux/FreeBSD how to check ntp time synchronization

debuser

4

6719

Wed Aug 01, 2012 6:59 am

Harespok View the latest post

There are no new unread posts for this topic. How to change user login shell to bash in Linux

mandrei99

0

2835

Thu Jan 22, 2015 11:37 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux - Unable to login (and authentication succeeds) - File size limit exceeded

debuser

3

3227

Tue Dec 06, 2011 8:24 am

admin View the latest post

There are no new unread posts for this topic. Linux/FreeBSD: How to find process start time or running time with PS

admin

0

7842

Wed Jan 21, 2015 12:25 pm

admin View the latest post

 

Who is online
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
Jump to:  
cronNews 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 - 5 hours [ DST ]



phpBB SEO