LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-11-2004, 04:15 PM   #1
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Rep: Reputation: 15
Cool Zip File Help :D

Hello, I am running apache, I would like to zip one of my webpages to move it to a XP box to update the html files. So, I was wondering how I can zip the files from the linux terminal. the path is /var/www/html I want that directory and all subdirectorys to be in the zip file. I know how to unzip a file. Just need to know how to zip it up so that XP can unzip it. Thanks for your help. Long live the Penguin!
Old 01-11-2004, 05:26 PM   #2
Registered: Jun 2003
Location: Istanbul - Turkey
Distribution: Fedora, Gentoo
Posts: 150

Rep: Reputation: 15
I think you should use the "zip" command.
Try this:

zip /root/back /var/www/html/*

this should create the file /root/ Theoretically Winzip should be able to open this file, but I haven't tried.
Old 01-11-2004, 05:59 PM   #3
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Add the -r option to zip a directory and sub-directories.

zip -r /var/www/html/


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupt zip file - NEED HELP!!! FNC Linux - Software 2 10-29-2006 01:09 PM
windows zip file d1l2w3 Linux - Software 8 03-01-2005 10:00 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 02:50 AM
zip the file ashley75 Linux - General 1 05-01-2004 01:52 PM
zip file athenerx Linux - Newbie 1 06-24-2001 07:15 PM

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration