The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Map Unix server directory to another Unix server directory sagolo SUN Solaris 2 08-29-2007 08:04 PM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 04:57 AM
unix and active directory Darwin Rodrigue Windows & DOS: Issues & Discussions 1 05-20-2005 01:34 PM
moving files from a unix directory to a windows directory gleads UNIX for Dummies Questions & Answers 2 08-29-2002 05:42 PM
How can I get the directory size in Unix? HarryHong UNIX for Dummies Questions & Answers 1 03-01-2001 04:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2008
Registered User
 

Join Date: Jul 2008
Posts: 29
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
Reply With Quote
Forum Sponsor
  #2  
Old 09-11-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Code:
tar -czf /tmp/mydirectory.tar.gz  mydirectory
-- the z part only works if you have GNU tar. Else:
Code:
tar -cf mydirectory.tar  mydirectory; gzip mydirectory.tar
you then have a compressed tar archive in /tmp named mydirectory.tar.gz. Windows can open it and extract files.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0