LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2006, 04:03 PM   #1
Tux-O-Matic
Member
 
Registered: Sep 2006
Distribution: Fedora Core 5 (no internet)
Posts: 95

Rep: Reputation: 15
Zip file bigger?


I recently zipped a folder, which was approximately 12 KB, and when I checked the size of the zip folder, it was approximately 12MB. Does this make sense?
 
Old 10-30-2006, 05:02 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Where did you see the size of the directory as 12kb? If it was in a listing from ls -l, that's the size of the directory list - it does not include the size of the files and subdirectories inside the directory.

If you got the size from a file manager (when asking the size of the directory and it's contents), it may be that the directory has symbolic links to files "outside" of itself, and these were not included in the size of the directory, but these files were included in the zipfile.
 
Old 10-31-2006, 02:01 PM   #3
Tux-O-Matic
Member
 
Registered: Sep 2006
Distribution: Fedora Core 5 (no internet)
Posts: 95

Original Poster
Rep: Reputation: 15
I was in the GUI and I just ran my mouse over the file. It read to me the file/folder size.
 
Old 11-01-2006, 05:19 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
It could be the symlink think then - AFIAK, Gnome's Nautilus file manager doesn't follow symlinks when calculating folder size.

Open up the folder (original, not zipped/unzipped), and look for files which have the link emblem on the icon.

If you have many sub-directories to search for symlinks like that, you can use the find command in the terminal.

For example, to check for symlinks in the folder MyDirectory on your Desktop, here's how you'd do it:
  1. Open a terminal window
  2. Change to the directory you want to check using this command
    Code:
    cd Desktop/MyDirectory
  3. Type this command in the terminal window. The output will be a list of symlinks anywhere in MyDirectory or any of it's sub-directories:
    Code:
    find . -type l
    (the "l" at the end of the command is a lower case L, not the digit one)
 
  


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
bash script - If file is bigger than 50 meg then ... paul_mat Linux - Software 3 06-20-2006 02:26 PM
Check to see that a file is bigger than a certain number of MB linAM Programming 3 02-17-2005 12:42 PM
create a self-extracting zip file with zip on solaris? samsolaris Solaris / OpenSolaris 3 10-15-2004 01:50 AM
Cant upload a file bigger then 1mb with php OrangeLefty Programming 1 04-19-2004 01:54 AM
Sampling bits of information in bigger and bigger pieces lugoteehalt General 0 10-29-2003 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:39 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