The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
compress Directory deep_kol Shell Programming and Scripting 9 11-29-2007 08:12 PM
AIX 4.3.3 / Compress Problem Peter_Brown UNIX for Advanced & Expert Users 0 02-15-2007 01:13 AM
tar and compress muru UNIX for Advanced & Expert Users 4 07-31-2006 05:23 PM
Copy and compress here2learn UNIX for Dummies Questions & Answers 4 11-30-2005 05:29 AM
How to Compress log files? redlotus72 UNIX for Dummies Questions & Answers 1 02-23-2005 02:07 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2007
Registered User
 

Join Date: Mar 2006
Posts: 15
mv and compress on the fly

I want to move and compress a big export file.
Like mv file_exp /filesystem/file_exp |compress
The file system is too small to compress and move with 2 steps.
What is the best command for me. I'm running solaris.

Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-22-2007
awk awk is offline
Registered User
 

Join Date: Feb 2007
Posts: 115
compress -c filename > /directory/...filename.Z

rm filename

if you are creating the compressed file on the same filesystem, you still will not have enough room. Just as you don't if you try a single step compress.

Other alternatives are pack, gzip, and zip.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:31 PM.


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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0