LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-13-2004, 08:12 AM   #1
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Rep: Reputation: 15
Question My files are growing!!!!


My files get larger everytime I copy them!? Why?
I got a zip file I copyed from one location to another. The file didnt work so I copyed it again. And then I noticed that the filesize was geting larger. How can this be?
 
Old 11-13-2004, 08:21 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
You mean the actual file itself is growing in size or the filesystem usage?
 
Old 11-13-2004, 08:51 AM   #3
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Are you compressing the file every time you copy it? If you compress an already compressed file, it will often (usually) grow bigger instead of smaller. Or so I've heard....
 
Old 11-13-2004, 08:53 AM   #4
Kanon
Member
 
Registered: Sep 2004
Location: Norge
Distribution: Debian
Posts: 116

Original Poster
Rep: Reputation: 15
lol Sorry guys! False alarm!
I was trying to copy a file from my FTP folder and the user was not done uploading!!! LOL My screw up of the YEAR!
 
Old 11-13-2004, 09:25 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by Kanon
lol Sorry guys! False alarm!
I was trying to copy a file from my FTP folder and the user was not done uploading!!! LOL My screw up of the YEAR!
If that's the worst you do, count yourself lucky! I do worse than that almost every time I sit myself down at my computer. Using Linux is a humbling experience for ME.
 
Old 11-13-2004, 02:44 PM   #6
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
jonr,

Yes, it is true. a compressed compressed compressed file will definately grow bigger. Once it can only get so small, the file must also retain the info on how the compression algorithm is stored.

simply gzip a gzip file and then gzip the gzipped gzipped file again.
 
Old 11-13-2004, 05:54 PM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by amfoster


simply gzip a gzip file and then gzip the gzipped gzipped file again.
Sounds like "Alice in Wonderland," doesn't it?

Thanks for the confirmation. I was pretty sure that was what happened.
 
Old 11-13-2004, 07:26 PM   #8
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
good analogy.

Maybe the inventor of compression was hitting on the
catapillar's pipe
 
  


Reply



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
Growing Used HDD space hisoka Fedora - Installation 4 10-25-2005 01:35 AM
PID - Keeps Growing Eileen Programming 10 10-03-2005 09:29 PM
Growing MySQL footprint robbiemorgan Linux - Newbie 3 09-22-2004 08:37 AM
Send Queue Growing - Why does this happen? oswald21 Linux - Networking 0 08-13-2003 01:33 PM
Growing Up... bkeating General 10 06-17-2002 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 AM.

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