Why is unzipped file smaller than zipped fileFile was deleted and then reappeared when folder was zippedHow to zip a big folder into small files limited to 20Mb?Can a Zip File Become Damaged from Repeated Unzipping?How to delete unwanted directory paths in zipped file?How to handle duplicate files during runtimeRezip file without creating temporariesUnzip File: Permission DeniedUnable to get data from unzipped fileRecovering password from zip fileunzipping and re-zipping a file results in a different hash

What is the winged creature on the back of the Mordenkainen's Tome of Foes book?

Are there historical examples of audiences drawn to a work that was "so bad it's good"?

Is there any mention of ghosts who live outside the Hogwarts castle?

Proto-Indo-European (PIE) words with IPA

VHDL: Why is it hard to desgin a floating point unit in hardware?

Three knights or knaves, three different hair colors

Adobe Illustrator: How can I change the profile of a dashed stroke?

What defines a person who is circumcised "of the heart"?

Why is this python script running in background consuming 100 % CPU?

If a character has cast the Fly spell on themselves, can they "hand off" to the Levitate spell without interruption?

What does `LOGFILE=$1:-/var/log/syslog` do?

How could Dwarves prevent sand from filling up their settlements

How to tease a romance without a cat and mouse chase?

Make the `diff` command look only for differences from a specified range of lines

csname in newenviroment

Meaning of "half-crown enclosure"

How to test if argument is a single space?

What does it mean for something to be strictly less than epsilon for an arbitrary epsilon?

One word for 'the thing that attracts me'?

Why is unzipped file smaller than zipped file

Gas chromatography flame ionization detector (FID) - why hydrogen gas?

To exponential digit growth and beyond!

Can the Conjure Barrage spell stack with the Disarming Attack or Trip Attack Battle Master maneuvers?

What was the primary motivation for a historical figure like Xenophon to create an extensive collection of written material?



Why is unzipped file smaller than zipped file


File was deleted and then reappeared when folder was zippedHow to zip a big folder into small files limited to 20Mb?Can a Zip File Become Damaged from Repeated Unzipping?How to delete unwanted directory paths in zipped file?How to handle duplicate files during runtimeRezip file without creating temporariesUnzip File: Permission DeniedUnable to get data from unzipped fileRecovering password from zip fileunzipping and re-zipping a file results in a different hash






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I unzipped a zipped file using zip -l but what get is a dir smaller than what it was before unzipping. Unzipped dir has all the files mostly videos. Am I missing something?



bash output of command ls -alh:
bash output of command ls -alh










share|improve this question









New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 2





    Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

    – sawdust
    3 hours ago












  • Instead of ls -lah, try using du -h on the directory

    – hojusaram
    1 hour ago

















2















I unzipped a zipped file using zip -l but what get is a dir smaller than what it was before unzipping. Unzipped dir has all the files mostly videos. Am I missing something?



bash output of command ls -alh:
bash output of command ls -alh










share|improve this question









New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 2





    Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

    – sawdust
    3 hours ago












  • Instead of ls -lah, try using du -h on the directory

    – hojusaram
    1 hour ago













2












2








2








I unzipped a zipped file using zip -l but what get is a dir smaller than what it was before unzipping. Unzipped dir has all the files mostly videos. Am I missing something?



bash output of command ls -alh:
bash output of command ls -alh










share|improve this question









New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I unzipped a zipped file using zip -l but what get is a dir smaller than what it was before unzipping. Unzipped dir has all the files mostly videos. Am I missing something?



bash output of command ls -alh:
bash output of command ls -alh







centos zip unzip






share|improve this question









New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 3 hours ago









Twisty Impersonator

19.1k1468101




19.1k1468101






New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 3 hours ago









bluedroidbluedroid

111




111




New contributor



bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




bluedroid is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  • 2





    Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

    – sawdust
    3 hours ago












  • Instead of ls -lah, try using du -h on the directory

    – hojusaram
    1 hour ago












  • 2





    Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

    – sawdust
    3 hours ago












  • Instead of ls -lah, try using du -h on the directory

    – hojusaram
    1 hour ago







2




2





Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

– sawdust
3 hours ago






Video files are compressed (and almost always with a lossy codec). Trying to compress an already-compressed file usually results in a larger file. File compression relies on finding repeating patterns, and only the first application of compression produces the maximum benefit.

– sawdust
3 hours ago














Instead of ls -lah, try using du -h on the directory

– hojusaram
1 hour ago





Instead of ls -lah, try using du -h on the directory

– hojusaram
1 hour ago










2 Answers
2






active

oldest

votes


















7














The size of a directory as shown in your screenshot isn't the sum of the size of the contents, it is the size of the meta-data associated with the directory - file names, etc.



https://unix.stackexchange.com/questions/55/what-does-size-of-a-directory-mean-in-output-of-ls-l-command



To find out how much space the directory contents are using, you can use



du -sh /path/to/directory






share|improve this answer






























    0














    Compression algorithms are typically divided into two categories:



    1. Lossy and 2. Lossless

    Most compression algorithms which deals with lossy compression, meaning that
    some non-essential bits of information is throwed away, are domain specific for the type of data it is trying to compress. Examples of such are
    Jpeg for pictures, H.264 for video and Mp3 for audio. The reason why they are domain specific is that some kind of model is required how the data is perceived by humans. In Mp3 psycho-aucustic models are used to determine how various lossy transformations on the data affects how we humans perceives the audio.



    The majority of general purpose compression algorithms like Zip files (which uses the Deflate algorithm) and XZ and 7zip which uses the ZMA/LZMA2 algorithms are general purpose lossless algorithms that uses information encoding theory only.



    There are several lossless domain specific compression formats and algorithms as well. Examples are common: Portable Network Graphics (PNG) for pictures, HEVC / H.265 for video and FLAC for audio. These algorithms will typically perform slightly better than a general purpose compression algorithm on domain data, but fail on generic data, for which it was never designed to operate on.



    If a general purpose compression algorithm fails to reduce the size of the input data set you can maybe have better success trying a domain specific lossless algorithm on your data. For example, for video data, you might want to try the x265 encoder: https://x265.readthedocs.io/en/default/lossless.html






    share|improve this answer








    New contributor



    user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.














    • 2





      This is all true, but completely irrelevant to the question.

      – Michael Hampton
      2 hours ago











    • @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

      – Ajay
      1 hour ago






    • 2





      @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

      – Michael Hampton
      1 hour ago











    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "3"
    ;
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    );



    );






    bluedroid is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1438770%2fwhy-is-unzipped-file-smaller-than-zipped-file%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7














    The size of a directory as shown in your screenshot isn't the sum of the size of the contents, it is the size of the meta-data associated with the directory - file names, etc.



    https://unix.stackexchange.com/questions/55/what-does-size-of-a-directory-mean-in-output-of-ls-l-command



    To find out how much space the directory contents are using, you can use



    du -sh /path/to/directory






    share|improve this answer



























      7














      The size of a directory as shown in your screenshot isn't the sum of the size of the contents, it is the size of the meta-data associated with the directory - file names, etc.



      https://unix.stackexchange.com/questions/55/what-does-size-of-a-directory-mean-in-output-of-ls-l-command



      To find out how much space the directory contents are using, you can use



      du -sh /path/to/directory






      share|improve this answer

























        7












        7








        7







        The size of a directory as shown in your screenshot isn't the sum of the size of the contents, it is the size of the meta-data associated with the directory - file names, etc.



        https://unix.stackexchange.com/questions/55/what-does-size-of-a-directory-mean-in-output-of-ls-l-command



        To find out how much space the directory contents are using, you can use



        du -sh /path/to/directory






        share|improve this answer













        The size of a directory as shown in your screenshot isn't the sum of the size of the contents, it is the size of the meta-data associated with the directory - file names, etc.



        https://unix.stackexchange.com/questions/55/what-does-size-of-a-directory-mean-in-output-of-ls-l-command



        To find out how much space the directory contents are using, you can use



        du -sh /path/to/directory







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        ivanivanivanivan

        1,44937




        1,44937























            0














            Compression algorithms are typically divided into two categories:



            1. Lossy and 2. Lossless

            Most compression algorithms which deals with lossy compression, meaning that
            some non-essential bits of information is throwed away, are domain specific for the type of data it is trying to compress. Examples of such are
            Jpeg for pictures, H.264 for video and Mp3 for audio. The reason why they are domain specific is that some kind of model is required how the data is perceived by humans. In Mp3 psycho-aucustic models are used to determine how various lossy transformations on the data affects how we humans perceives the audio.



            The majority of general purpose compression algorithms like Zip files (which uses the Deflate algorithm) and XZ and 7zip which uses the ZMA/LZMA2 algorithms are general purpose lossless algorithms that uses information encoding theory only.



            There are several lossless domain specific compression formats and algorithms as well. Examples are common: Portable Network Graphics (PNG) for pictures, HEVC / H.265 for video and FLAC for audio. These algorithms will typically perform slightly better than a general purpose compression algorithm on domain data, but fail on generic data, for which it was never designed to operate on.



            If a general purpose compression algorithm fails to reduce the size of the input data set you can maybe have better success trying a domain specific lossless algorithm on your data. For example, for video data, you might want to try the x265 encoder: https://x265.readthedocs.io/en/default/lossless.html






            share|improve this answer








            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.














            • 2





              This is all true, but completely irrelevant to the question.

              – Michael Hampton
              2 hours ago











            • @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

              – Ajay
              1 hour ago






            • 2





              @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

              – Michael Hampton
              1 hour ago















            0














            Compression algorithms are typically divided into two categories:



            1. Lossy and 2. Lossless

            Most compression algorithms which deals with lossy compression, meaning that
            some non-essential bits of information is throwed away, are domain specific for the type of data it is trying to compress. Examples of such are
            Jpeg for pictures, H.264 for video and Mp3 for audio. The reason why they are domain specific is that some kind of model is required how the data is perceived by humans. In Mp3 psycho-aucustic models are used to determine how various lossy transformations on the data affects how we humans perceives the audio.



            The majority of general purpose compression algorithms like Zip files (which uses the Deflate algorithm) and XZ and 7zip which uses the ZMA/LZMA2 algorithms are general purpose lossless algorithms that uses information encoding theory only.



            There are several lossless domain specific compression formats and algorithms as well. Examples are common: Portable Network Graphics (PNG) for pictures, HEVC / H.265 for video and FLAC for audio. These algorithms will typically perform slightly better than a general purpose compression algorithm on domain data, but fail on generic data, for which it was never designed to operate on.



            If a general purpose compression algorithm fails to reduce the size of the input data set you can maybe have better success trying a domain specific lossless algorithm on your data. For example, for video data, you might want to try the x265 encoder: https://x265.readthedocs.io/en/default/lossless.html






            share|improve this answer








            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.














            • 2





              This is all true, but completely irrelevant to the question.

              – Michael Hampton
              2 hours ago











            • @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

              – Ajay
              1 hour ago






            • 2





              @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

              – Michael Hampton
              1 hour ago













            0












            0








            0







            Compression algorithms are typically divided into two categories:



            1. Lossy and 2. Lossless

            Most compression algorithms which deals with lossy compression, meaning that
            some non-essential bits of information is throwed away, are domain specific for the type of data it is trying to compress. Examples of such are
            Jpeg for pictures, H.264 for video and Mp3 for audio. The reason why they are domain specific is that some kind of model is required how the data is perceived by humans. In Mp3 psycho-aucustic models are used to determine how various lossy transformations on the data affects how we humans perceives the audio.



            The majority of general purpose compression algorithms like Zip files (which uses the Deflate algorithm) and XZ and 7zip which uses the ZMA/LZMA2 algorithms are general purpose lossless algorithms that uses information encoding theory only.



            There are several lossless domain specific compression formats and algorithms as well. Examples are common: Portable Network Graphics (PNG) for pictures, HEVC / H.265 for video and FLAC for audio. These algorithms will typically perform slightly better than a general purpose compression algorithm on domain data, but fail on generic data, for which it was never designed to operate on.



            If a general purpose compression algorithm fails to reduce the size of the input data set you can maybe have better success trying a domain specific lossless algorithm on your data. For example, for video data, you might want to try the x265 encoder: https://x265.readthedocs.io/en/default/lossless.html






            share|improve this answer








            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            Compression algorithms are typically divided into two categories:



            1. Lossy and 2. Lossless

            Most compression algorithms which deals with lossy compression, meaning that
            some non-essential bits of information is throwed away, are domain specific for the type of data it is trying to compress. Examples of such are
            Jpeg for pictures, H.264 for video and Mp3 for audio. The reason why they are domain specific is that some kind of model is required how the data is perceived by humans. In Mp3 psycho-aucustic models are used to determine how various lossy transformations on the data affects how we humans perceives the audio.



            The majority of general purpose compression algorithms like Zip files (which uses the Deflate algorithm) and XZ and 7zip which uses the ZMA/LZMA2 algorithms are general purpose lossless algorithms that uses information encoding theory only.



            There are several lossless domain specific compression formats and algorithms as well. Examples are common: Portable Network Graphics (PNG) for pictures, HEVC / H.265 for video and FLAC for audio. These algorithms will typically perform slightly better than a general purpose compression algorithm on domain data, but fail on generic data, for which it was never designed to operate on.



            If a general purpose compression algorithm fails to reduce the size of the input data set you can maybe have better success trying a domain specific lossless algorithm on your data. For example, for video data, you might want to try the x265 encoder: https://x265.readthedocs.io/en/default/lossless.html







            share|improve this answer








            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            share|improve this answer



            share|improve this answer






            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            answered 3 hours ago









            user3504575user3504575

            172




            172




            New contributor



            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




            New contributor




            user3504575 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            • 2





              This is all true, but completely irrelevant to the question.

              – Michael Hampton
              2 hours ago











            • @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

              – Ajay
              1 hour ago






            • 2





              @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

              – Michael Hampton
              1 hour ago












            • 2





              This is all true, but completely irrelevant to the question.

              – Michael Hampton
              2 hours ago











            • @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

              – Ajay
              1 hour ago






            • 2





              @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

              – Michael Hampton
              1 hour ago







            2




            2





            This is all true, but completely irrelevant to the question.

            – Michael Hampton
            2 hours ago





            This is all true, but completely irrelevant to the question.

            – Michael Hampton
            2 hours ago













            @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

            – Ajay
            1 hour ago





            @MichaelHampton However, this answer will probably be more likely what is being searched for when finding this question on google.

            – Ajay
            1 hour ago




            2




            2





            @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

            – Michael Hampton
            1 hour ago





            @Ajay That seems strange to me but in that case, it probably should be an answer to a different question.

            – Michael Hampton
            1 hour ago










            bluedroid is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            bluedroid is a new contributor. Be nice, and check out our Code of Conduct.












            bluedroid is a new contributor. Be nice, and check out our Code of Conduct.











            bluedroid is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Super User!


            • 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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1438770%2fwhy-is-unzipped-file-smaller-than-zipped-file%23new-answer', 'question_page');

            );

            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







            Popular posts from this blog

            Log på Navigationsmenu

            Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

            Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse