Linux Does So Much More than ZIP!

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • Linux can use the same zip/unzip Windows uses -- but it also has much more efficient compression tools. In this video we learn to archive and compress files and folders on the commandline. And we do it in like... 4 different ways!
    This video based on:
    LPI Linux Essentials
    Objective 3.1 - Archiving Files on the Command Line
    www.lpi.org/ou...
    #LPI #LinuxEssentials #Exam_010_160 #Linux
    Find me online:
    / shawnp0wers
    brainofshawn.com
    Check out my comic!
    / mybigroundworld

КОМЕНТАРІ • 32

  • @jimc1499
    @jimc1499 11 місяців тому +1

    Thank you I see it excels in compression🎉

  • @teamvigod
    @teamvigod 3 роки тому +6

    Suggestion for future content to do a comprehensive tutorial on Rsync. I used to use it to sync servers with each other (was very efficient!).
    Also I didn't know about XZ as I haven't done sysadmin for 10 years. I just play around in the terminal to try and not lose all my CLI chops. Good to see the new tools and also refresher on old ones. Heck I just learned the new SSH key format everyone is using now instead of DSA or RSA!

  • @DigitalMetal
    @DigitalMetal 3 роки тому +6

    Great Video. Some reasons that Linux users will use options other then zip may be because zip files have a limit of 4GB and I'm also pretty sure that zip files don't preserve file permissions.

    • @shawnp0wers
      @shawnp0wers  3 роки тому +2

      I think you’re correct on permissions, but I didn’t know all the nuances (are uid/gid preserved?) - and I figured it was more in depth than this video should focus on. I did probably over-silly the “for some reason” stuff though, lol. :)
      Thanks! Oh, and I didn’t know about the 4GB limit, so I got to learn too, double thanks!

  • @hashp
    @hashp 3 роки тому +1

    Nicely done! Great explanations and examples w/o any fluff. Thanks!

    • @shawnp0wers
      @shawnp0wers  3 роки тому +2

      Thank you! I’m glad you enjoyed it. :)

  • @garethcarolan8577
    @garethcarolan8577 3 місяці тому

    Thanks for your Essential Tutorial massive help to me

  • @JamesCallender-b5m
    @JamesCallender-b5m 11 місяців тому

    Thank you for the really great playlist

  • @mikeolear
    @mikeolear 3 роки тому +1

    Great videos! As far as an idea for future content, I would love to see your take on the current LPIC-1 objectives if possible. Love your catch phrase at the end of your videos! :-)

    • @shawnp0wers
      @shawnp0wers  3 роки тому +1

      Thanks Michael! (It's funny you mention my catch phrase, I actually just added it to my header image because I figure most folks click away before I say it. LOL!)
      I will admit I haven't looked at a recent set of LPIC-1 objectives, ever since they split off from CompTIA, to be honest. I did a Linux+ course for CBT when I was making content for them, but my last LPIC-1 is... pretty dated. Have there been significant changes? I'll have to look. Maybe LPIC-1 will be on my short list of plans... :D Thanks!

    • @mikeolear
      @mikeolear 3 роки тому

      @@shawnp0wers The main changes for the current LPIC-1 seem to be regarding systemd and the networking sections. Thanks for all you do! :-)

  • @lorenapowers1198
    @lorenapowers1198 7 місяців тому

    Great video! I leaned a ton! Thank you, God Bless you!

  • @teamvigod
    @teamvigod 3 роки тому +2

    With GZIP you can use the flag -9 or --best indicates the slowest compression speed with maximum compression ratio. It may do a little better (at the expense of speed).

    • @shawnp0wers
      @shawnp0wers  3 роки тому +1

      It was oddly fun to compress and compare. I sorta wanted to play with compression levels, but I figured that was going too far.
      Now I wanna play! :D

    • @teamvigod
      @teamvigod 3 роки тому +2

      @@shawnp0wers LOL. LMK if you do test it and if Gzip gets any closer. Like you, I've been using it for well over 20 years so just so used to Gzip vs the others. The other compressors are probably better though I would guess. Faster and better compression overall.
      I also tend to use the -v flag (i.e. tar -zcvf) so I can watch the files go by (verbose). It's good as long as the file list isn't too large in which case I omit it. Gives me a little progress to watch as it chugs along.

    • @shawnp0wers
      @shawnp0wers  3 роки тому +1

      HA! Me too! The first recording I used -v for that exact reason. But it made stuff scroll by, and it was harder to point back up at file sizes, etc.
      My fingers type -zxvf out of muscle memory. :)

    • @teamvigod
      @teamvigod 3 роки тому

      @@shawnp0wers I completely forgot as I don't use it often (again due to my gzip muscle memory) but along with the 3 compression tools you covered here what are your thoughts on 7zip? Supposed to have one of the best compression and performance. I use it on occasion on linux, windows and mac but it's never top of mind despite it being multi-platform and so good!

    • @shawnp0wers
      @shawnp0wers  3 роки тому +1

      @@teamvigod I use it on Windows, because it basically works on everything - but truthfully, I use gzip in Linux 99% of the time.

  • @AhenfoKojo
    @AhenfoKojo Рік тому +1

    When I tried xz rather gave me a bigger file size followed by bzip2 and then gz giving me the lowest size. What did I do wrong please?

    • @dfmu2669
      @dfmu2669 Місяць тому

      the same thing happened to me lol

  • @ik04
    @ik04 3 роки тому

    Great review! I've used xz, but I forgot about it because it didn't exist when I learned all this stuff a hundred years ago...

    • @shawnp0wers
      @shawnp0wers  3 роки тому

      Same! And I had to google the “combined extensions” to make sure I got them right. (I left in the googling, because, well, that’s how we do it in real life, lol)

  • @yayow_p
    @yayow_p 2 роки тому

    Great stuff!

  • @jimc1499
    @jimc1499 11 місяців тому

    Straight forward videos🎉

  • @philmerHD
    @philmerHD 2 роки тому

    I love this thank you.

  • @IT-x2f
    @IT-x2f 9 місяців тому

    Wow zip/unzip seem so much easier!

  • @dfmu2669
    @dfmu2669 Місяць тому

    when i compressed using bz2, gz & xz, gz showed the least space taken.. hmm

  • @ahmedghallab5342
    @ahmedghallab5342 Рік тому

    شكرا💙thanks