![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2004
Location: My dog is blacker than Tupac
Posts: 5,471
|
Linux dudes need help. need to zip on the server 20 folders
I have 20 folders on a linux box and I need to zip the contents of each folders into folder name.zip Does anyone now the command?
Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
former Miserable Admin :)
Join Date: Oct 2003
Location: Somewhere in Cali
Posts: 4,700
|
Quote:
![]() http://www.asu.edu/it/fyi/dst/helpdo.../disk/tar.html ![]()
__________________
ICQ: 168-914-369 >>> sysop [at] TexasDreams [dot] com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jun 2005
Location: ♠ ♣ ♥
Posts: 2,341
|
man zip
....
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Nov 2004
Location: scv
Posts: 2,299
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2005
Location: ICQ: 5262689
Posts: 672
|
go to that folder and issue this command
Code:
zip -r name.zip . |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Aug 2004
Location: My dog is blacker than Tupac
Posts: 5,471
|
I need a .zip not a tar
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
former Miserable Admin :)
Join Date: Oct 2003
Location: Somewhere in Cali
Posts: 4,700
|
Quote:
![]() http://www.download.com/3000-2250-10007677.html ![]()
__________________
ICQ: 168-914-369 >>> sysop [at] TexasDreams [dot] com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
|
Quote:
seriously though why zip when you can tar? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Aug 2004
Location: My dog is blacker than Tupac
Posts: 5,471
|
im sorry. My problem is I have a script in the server that needs zips
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Registered User
Join Date: Jul 2005
Location: VA, USA
Posts: 87
|
Quote:
find . -type d -maxdepth 0 -exec zip -ur {}.zip {}/* \; The find command will start in your current working directory (.), look for all things that are directories (-type d), and for each, it will execute (-exec ... \;) the command given, substituting {} for the name of the directory found. The -maxdepth 0 makes sure it doesn't go into the subdirectories recursively. The command (zip -ur) does the standard update/recursive zip. do a "man find" and a "man zip" to fine tune the options. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Registered User
Join Date: Jul 2005
Location: VA, USA
Posts: 87
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |