Command to zip a directory


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command to zip a directory
# 1  
Old 08-02-2012
Bug Command to zip a directory

Hi ,

How to compress the entire directory .

Rajesh
# 2  
Old 08-02-2012
Create a tar-archive with tar and then compress it with the tool of your choice.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Zip a file without directory

Hi I was trying to zip some file in a directory using the below command. find /dir1/dir2/ -name "asdf*.txt" -print | zip -m /dir1/dir2/dir3/asd_Date.zip -@ Its getting zipped.But when I am trying to unzip, Its getting unzipped with full directory structure. Is there any command... (1 Reply)
Discussion started by: ginrkf
1 Replies

2. Shell Programming and Scripting

Zip a directory based on its age

I had allot of help with the below script, and its been a long time since i've done anything with shell scripts so I am having some trouble. I am trying to zip the trace folder after it is copied and dated but i'm unsure of how to tell it to zip this new folder without knowing what it will be... (2 Replies)
Discussion started by: kylecn
2 Replies

3. UNIX for Dummies Questions & Answers

Zip all files in a directory and move to another directory

Hi, need to zip all files in a directory and move to another directory after the zip.. i am using this one but didnt help me... zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/ i am trying to zip all the files in my_proj... (0 Replies)
Discussion started by: dssyadav
0 Replies

4. UNIX for Dummies Questions & Answers

Zip files inside the directory, but not the directory itself

Hi, Im facing a problem that im stucked, I have the following structure: thales@pereirtc-vbox:/home/VfARM$ ls code config doc lib manifest.bak manifest.rel manifest.v3 ns pub if i try to execute zip -q -o arm.zip VfARM/* it will create a zip file with the folder VfARM.... (2 Replies)
Discussion started by: Thales.Claro
2 Replies

5. Shell Programming and Scripting

Restricting zip to current directory only

I am using the following command in a C shell script: find . -name "*.*" -print | zip $ProjectZipFile -@ to zip files in a Unix (Sun and/or Linux) directory for archiving purposes. This command works fine, the only problem being that if sub-directories are present, they are included in... (5 Replies)
Discussion started by: phudgens
5 Replies

6. UNIX for Dummies Questions & Answers

how to zip the entire directory

my first question is how to zip the entire directory contents. second question is can we unzip the same file through windows environment. please help i need to complete it by EOD (3 Replies)
Discussion started by: bbc17484
3 Replies

7. 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

8. Shell Programming and Scripting

Zip all files in a directory

I have two files in a directory: xxxx.txt xxxx.csv I need to zip both files up but the command I am doing below is only zipping xxx.txt file????: cd ../$CUSTOMER_DIRECTORY zip -q ${name}${FILE_OUT_NAME}.zip ls -lrt *.csv *.txt can anyone help?:confused: (3 Replies)
Discussion started by: Pablo_beezo
3 Replies

9. UNIX for Advanced & Expert Users

zip unix directory

what's the best command to zip up the whole unix directory, then ftp this to windows for viewing the directories/files. thank you (1 Reply)
Discussion started by: venhart
1 Replies

10. Shell Programming and Scripting

assign zip directory to variable

I'm running an sh shell that is unzipping some zip files that have a directory structure on them. Is there a way I can find the top level directory in the zip file and assign that to a variable? mike (5 Replies)
Discussion started by: skwyer
5 Replies
Login or Register to Ask a Question