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
how to compress .zlib file wrapster UNIX for Advanced & Expert Users 1 05-04-2008 11:52 PM
unix script to takes the old data from a TXT file and compress them into new file vpandey Shell Programming and Scripting 2 03-05-2008 07:10 AM
compress more than one file prasee UNIX for Advanced & Expert Users 2 09-08-2007 06:15 AM
Compress a file before ftp MrMac Shell Programming and Scripting 1 11-21-2006 05:06 AM
compress a file in unix rujupriya UNIX for Dummies Questions & Answers 5 05-24-2006 05:05 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2005
Registered User
 

Join Date: Jan 2005
Posts: 32
[help] Cant compress file

Anybody know what happened here?

162 lab2-36:~/try_direct/another> compress url.txt
url.txt: -- file unchanged
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-17-2005
Registered User
 

Join Date: Jan 2005
Posts: 32
Why this file remained unchanged?
Reply With Quote
  #3 (permalink)  
Old 01-17-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
what is size of the file ?
Compression happens if the file is significantly large and compression should save some space.

Try on a large file ....
Reply With Quote
  #4 (permalink)  
Old 01-17-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
or try some thing like this :
compress -v url.txt to run in verbose mode.

or forcibly do compression eventhough % of compression is less.

compress -f url.txt
Reply With Quote
  #5 (permalink)  
Old 01-17-2005
Registered User
 

Join Date: Jan 2005
Posts: 32
OK, thanx. It does work on large files. I'm just wondering why it doesn't work on this file. Sure it's a small file - only 65 bytes.
Reply With Quote
  #6 (permalink)  
Old 01-17-2005
Registered User
 

Join Date: Dec 2000
Location: Greater Dallas area
Posts: 405
compress will not compress a file if the compressed file is not smaller than the source file.

Seems like the block size of the file system would be the smallest unit it could (or should) consider.
__________________
[url=http://chuckb.1le.net/]My website[/url]
Reply With Quote
  #7 (permalink)  
Old 01-17-2005
Registered User
 

Join Date: Jan 2005
Posts: 32
Thanx.
What is "the block size" anyway?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:55 AM.


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

Content Relevant URLs by vBSEO 3.2.0