Zip/Tar file compressed to larger size?What does size of a directory mean in output of 'ls -l' command?Is there a command to list the compressed file sizes for files within a .zip file?Why can't tar extract .zip files?Unpack file compressed in .txz and .tar with one commandBash script to get the result from rsync transfer and zip it as a directory in the original directorytar extract into directory with same base name?why would you tar a zip fileWhy does `zip` in a for loop work when the file exists, but not when it doesn't?rsync-like updating of archive filetar: Potential bug (?) when incremental archive selected - Deleting files in the targetzip command show warnings “name not matched” about symlinks, outside of my working directory, pointing to non-existing target
Can we compute the area of a quadrilateral with one right angle when we only know the lengths of any three sides?
Would Slavery Reparations be considered Bills of Attainder and hence Illegal?
Why do bosons tend to occupy the same state?
How dangerous is XSS?
Is "remove commented out code" correct English?
Why can't we play rap on piano?
Do scales need to be in alphabetical order?
Intersection Puzzle
One verb to replace 'be a member of' a club
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
Can compressed videos be decoded back to their uncompresed original format?
Should I cover my bicycle overnight while bikepacking?
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Why is consensus so controversial in Britain?
Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?
What mechanic is there to disable a threat instead of killing it?
How do conventional missiles fly?
Can I run a new neutral wire to repair a broken circuit?
All in one piece, we mend holes in your socks
How to tell a function to use the default argument values?
Is it logically or scientifically possible to artificially send energy to the body?
Reverse dictionary where values are lists
Why would the Red Woman birth a shadow if she worshipped the Lord of the Light?
GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?
Zip/Tar file compressed to larger size?
What does size of a directory mean in output of 'ls -l' command?Is there a command to list the compressed file sizes for files within a .zip file?Why can't tar extract .zip files?Unpack file compressed in .txz and .tar with one commandBash script to get the result from rsync transfer and zip it as a directory in the original directorytar extract into directory with same base name?why would you tar a zip fileWhy does `zip` in a for loop work when the file exists, but not when it doesn't?rsync-like updating of archive filetar: Potential bug (?) when incremental archive selected - Deleting files in the targetzip command show warnings “name not matched” about symlinks, outside of my working directory, pointing to non-existing target
I have 4 files that I want to include them in a .zip file.
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
As you can see in total they size 32K.
After
I am creating the zip using the command bellow:
zip -r myfiles.zip *
The file was created successfully but now its size is 20M, as you can see bellow!
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
-rw-rw-r-- 1 skemelio themelis 20M Απρ 4 02:00 myfiles.zip
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
What I've done wrong?
ps: Same thing (same size) happened when I try to create a .tar using tar cvf myfiles.tar *
.
tar zip compression
New contributor
add a comment |
I have 4 files that I want to include them in a .zip file.
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
As you can see in total they size 32K.
After
I am creating the zip using the command bellow:
zip -r myfiles.zip *
The file was created successfully but now its size is 20M, as you can see bellow!
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
-rw-rw-r-- 1 skemelio themelis 20M Απρ 4 02:00 myfiles.zip
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
What I've done wrong?
ps: Same thing (same size) happened when I try to create a .tar using tar cvf myfiles.tar *
.
tar zip compression
New contributor
1
A individual directory always shows the 4k size when viewed withls
- what you want to use to check before isdu
- ie,du -sh *
– ivanivan
4 hours ago
1
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
1
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago
add a comment |
I have 4 files that I want to include them in a .zip file.
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
As you can see in total they size 32K.
After
I am creating the zip using the command bellow:
zip -r myfiles.zip *
The file was created successfully but now its size is 20M, as you can see bellow!
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
-rw-rw-r-- 1 skemelio themelis 20M Απρ 4 02:00 myfiles.zip
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
What I've done wrong?
ps: Same thing (same size) happened when I try to create a .tar using tar cvf myfiles.tar *
.
tar zip compression
New contributor
I have 4 files that I want to include them in a .zip file.
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
As you can see in total they size 32K.
After
I am creating the zip using the command bellow:
zip -r myfiles.zip *
The file was created successfully but now its size is 20M, as you can see bellow!
drwxr-xr-x 7 skemelio themelis 4,0K Οκτ 18 00:21 CSharp
drwxr-xr-x 11 skemelio themelis 4,0K Οκτ 18 00:17 gnome-games
drwxr-xr-x 8 skemelio themelis 4,0K Οκτ 18 00:17 gnome-music
-rw-rw-r-- 1 skemelio themelis 20M Απρ 4 02:00 myfiles.zip
drwxr-xr-x 4 skemelio themelis 4,0K Οκτ 18 00:18 Test
What I've done wrong?
ps: Same thing (same size) happened when I try to create a .tar using tar cvf myfiles.tar *
.
tar zip compression
tar zip compression
New contributor
New contributor
edited 3 hours ago
Rui F Ribeiro
41.9k1483142
41.9k1483142
New contributor
asked 5 hours ago
ThemelisThemelis
1163
1163
New contributor
New contributor
1
A individual directory always shows the 4k size when viewed withls
- what you want to use to check before isdu
- ie,du -sh *
– ivanivan
4 hours ago
1
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
1
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago
add a comment |
1
A individual directory always shows the 4k size when viewed withls
- what you want to use to check before isdu
- ie,du -sh *
– ivanivan
4 hours ago
1
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
1
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago
1
1
A individual directory always shows the 4k size when viewed with
ls
- what you want to use to check before is du
- ie, du -sh *
– ivanivan
4 hours ago
A individual directory always shows the 4k size when viewed with
ls
- what you want to use to check before is du
- ie, du -sh *
– ivanivan
4 hours ago
1
1
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
1
1
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago
add a comment |
1 Answer
1
active
oldest
votes
An individual directory always shows a false size when viewed with ls
- what you want to use to check before is du
- ie, du -sh *
.
A good explanation of what the size of a directory means is on this Q&A - What does size of a directory mean in output of 'ls -l' command?
The size show by ls for a directory is notfalse
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.
– icarus
9 mins ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Themelis is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510386%2fzip-tar-file-compressed-to-larger-size%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
An individual directory always shows a false size when viewed with ls
- what you want to use to check before is du
- ie, du -sh *
.
A good explanation of what the size of a directory means is on this Q&A - What does size of a directory mean in output of 'ls -l' command?
The size show by ls for a directory is notfalse
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.
– icarus
9 mins ago
add a comment |
An individual directory always shows a false size when viewed with ls
- what you want to use to check before is du
- ie, du -sh *
.
A good explanation of what the size of a directory means is on this Q&A - What does size of a directory mean in output of 'ls -l' command?
The size show by ls for a directory is notfalse
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.
– icarus
9 mins ago
add a comment |
An individual directory always shows a false size when viewed with ls
- what you want to use to check before is du
- ie, du -sh *
.
A good explanation of what the size of a directory means is on this Q&A - What does size of a directory mean in output of 'ls -l' command?
An individual directory always shows a false size when viewed with ls
- what you want to use to check before is du
- ie, du -sh *
.
A good explanation of what the size of a directory means is on this Q&A - What does size of a directory mean in output of 'ls -l' command?
edited 1 hour ago
slm♦
255k71539687
255k71539687
answered 4 hours ago
ivanivanivanivan
3,7471414
3,7471414
The size show by ls for a directory is notfalse
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.
– icarus
9 mins ago
add a comment |
The size show by ls for a directory is notfalse
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.
– icarus
9 mins ago
The size show by ls for a directory is not
false
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.– icarus
9 mins ago
The size show by ls for a directory is not
false
, it is the size of the directory. However the size of a directory is related to the number of entries in it (possibly the largest number it every had), not the size of those entries.– icarus
9 mins ago
add a comment |
Themelis is a new contributor. Be nice, and check out our Code of Conduct.
Themelis is a new contributor. Be nice, and check out our Code of Conduct.
Themelis is a new contributor. Be nice, and check out our Code of Conduct.
Themelis is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510386%2fzip-tar-file-compressed-to-larger-size%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
A individual directory always shows the 4k size when viewed with
ls
- what you want to use to check before isdu
- ie,du -sh *
– ivanivan
4 hours ago
1
Ok I had no idea why this happens but you are right. Why don't you make it an answer?
– Themelis
4 hours ago
1
Possible duplicate of What does size of a directory mean in output of 'ls -l' command?
– Fabby
4 hours ago