Sponsored Content
Full Discussion: zip command
Top Forums UNIX for Dummies Questions & Answers zip command Post 302186562 by era on Thursday 17th of April 2008 02:05:21 PM
Old 04-17-2008
If you mean the zip command specifically, it has an -r option to recursively descend into directories.

Code:
zip -r lunaa.zip lunaa

On Unix, the traditional archiving software is tar, which in modern versions includes compression options. It will descend into subdirectories by default.

Code:
tar zcf lunaa.tar.gz lunaa

Neither of these will remove the folder after you have archived it; if you want that, it's simple enough to rm -rf lunaa after you're done.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

zip command

Hi All, I have the following requirement. Source file Products_Extract.dat contains <CTRL M > characters and hence is in DOS format. I zip this file using zip command in UNIX BOX as follows: find . -name Products_Extract.dat|zip Target.zip -@ Next I ftp (in Binary MODE) this output zip... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

2. UNIX for Dummies Questions & Answers

Zip command (zip folder doesn't include a folder of the same name)

Hi guys, I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command: zip foo -r I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
Discussion started by: elioncho
1 Replies

3. UNIX for Dummies Questions & Answers

Problem with zip command..

Hi friends I am working in cygwin. Currently I am in root directory(C). I want to zip only the files from a diretory "A" to a new directory 1.zip in root directory C. I am using the following command: $: zip 1.zip A/* but it is zipping the entire directory itself, But what I want is when... (4 Replies)
Discussion started by: ks_reddy
4 Replies

4. Shell Programming and Scripting

Troubles with zip command

Hello, I have some troubles with script that creates a zip archive. First I added following command: zip -r /path/to/folder/packed_file.zip /another/path/folder_for_packing But there is a problem: how to zip the folder without adding full path inside the archive? 'folder_for_backing'... (3 Replies)
Discussion started by: assamalla
3 Replies

5. UNIX and Linux Applications

Zip command for large folder

I am trying to zip a folder, its size is more than 3 GB. I used below command zip -r foo middleware -x "*path*" This command fails every time with message "Filesize exceeded limit" Can some one help me how to over come this problem and zip the entire folder without splitting it. ... (2 Replies)
Discussion started by: ariram
2 Replies

6. Shell Programming and Scripting

Command to zip a directory

Hi , How to compress the entire directory . Rajesh (1 Reply)
Discussion started by: guddu_12
1 Replies

7. Shell Programming and Scripting

Zip command not working

Hi, file.txt 1 2 3 4 5 zip command is not working in linux environment. zip file.zip file.txt (5 Replies)
Discussion started by: onesuri
5 Replies

8. UNIX for Dummies Questions & Answers

How to use zip command in AIX?

hi i am not able to use zip command in aix. getting below error zip abc.zip ksh: zip: not found. oslevel 5.3.0.0 (4 Replies)
Discussion started by: scriptor
4 Replies

9. Shell Programming and Scripting

Zip data using Command

HI Guys, I using below command to zip data but in zip file i have entire path of source. zip $HOME/EM/ZIPData/All.tar.gz /vr/rt/on/mg/set/XM/Swor/xt/0300*.* In Zip file i have entire path vr/rt/on/mg/set/XM/Swor/xt/ I just want file data zip in may target location (2 Replies)
Discussion started by: pareshkp
2 Replies

10. Shell Programming and Scripting

Question regarding zip command

Hi, I wish to zip a folder with only those files which have ".properties" extension while excluding all other file extensions be it in the same folder or sub-folder. Can you help me with how can get that to work ? (1 Reply)
Discussion started by: mohtashims
1 Replies
ARK(1)								 KDE User's Manual							    ARK(1)

NAME
ark - KDE archiving tool SYNOPSIS
ark [-b] [-a] [-e] [-c] [-f suffix] [-p] [-t file] [-d] [-o directory] [KDE Generic Options] [Qttm Generic Options] DESCRIPTION
Ark is a program for managing various compressed file formats within KDE. Archives can be viewed, extracted, created and modified with Ark. The program can handle various formats such as tar, gzip, bzip2, zip, rar (when the appropriate libraries or command-line programs are in- stalled). OPERATION MODES
Ark can be used either as a stand-alone GUI program as well as a command-line program in order to perform some specific tasks. If invoked without the -b (--batch) or -c (--add) options, Ark is started as a normal GUI program. When the -b (--batch) option is used, Ark can be used to extract the contents of one or more files directly from the command-line, without launching its GUI. When the -c (--add) option is used, Ark prompts for files that should be added to a new archive or to an existing archive. OPTIONS
-d, --dialog Show a dialog for specifying the options for a batch or add operation. -o, --destination directory Default the extraction directory to directory. If not passed, the current path is used. Options for adding files -c, --add Query the user for an archive filename and add specified files to it. Quit when finished. -t, --add-to filename Add the specified files to filename. Create archive if it does not exist. Quit when finished. -p, --changetofirstpath Change the current directory to the first entry and add all other entries relative to this one. -f, --autofilename suffix Automatically choose a filename, with the selected suffix (for example rar, tar.gz, zip or any other supported types). Options for batch extraction b, --batch Use the batch interface instead of the usual dialog. This option is implied if more than one url is specified. -e, --autodestination The destination argument will be set to the path of the first file supplied. -a, --autosubfolder Archive contents will be read, and if detected to not be a single folder archive, a subfolder by the name of the archive will be created. EXAMPLES
ark --batch archive.tar.bz2 Will extract archive.tar.bz2 into the current directory without showing any GUI. ark -b -d archive.tar.bz2 archive2.zip Will first show an extraction options dialog and then extract both archive.tar.bz2 and archive2.zip into the directory chosen in the dialog. ark --add-to my-archive.zip photo1.jpg text.txt Will create my-archive.zip if does not exist and then add photo1.jpg and text.txt to it. AUTHORS
Ark is currently maintained by Harald Hvaal <haraldhv@stud.ntnu.no> and Raphael Kubo da Costa <kubito@gmail.com>. This man page was first written by Lauri Watts <lauri@kde.org> in 2005 for KDE 3.4, and was later updated in 2009 by Raphael Kubo da Costa <kubito@gmail.com>. AUTHORS
Lauri Watts, Raphael Kubo da Costa. K Desktop Environment 2009-09-10 ARK(1)
All times are GMT -4. The time now is 04:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy