Linux Does So Much More than ZIP!

Ғылым және технология

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/our-certifications/exam-010-objectives
#LPI #LinuxEssentials #Exam_010_160 #Linux
Find me online:
shawnp0wers
brainofshawn.com
Check out my comic!
MyBigRoundWorld

Пікірлер: 29

  • @DigitalMetal
    @DigitalMetal2 жыл бұрын

    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

    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!

  • @lorenapowers1198
    @lorenapowers1198Ай бұрын

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

  • @teamvigod
    @teamvigod2 жыл бұрын

    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!

  • @hashp
    @hashp2 жыл бұрын

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

  • @shawnp0wers

    @shawnp0wers

    2 жыл бұрын

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

  • @jimc1499
    @jimc14995 ай бұрын

    Thank you I see it excels in compression🎉

  • @user-ce8hq4qg8p
    @user-ce8hq4qg8p5 ай бұрын

    Thank you for the really great playlist

  • @mikeolear
    @mikeolear2 жыл бұрын

    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

    2 жыл бұрын

    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

    2 жыл бұрын

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

  • @yayow_p
    @yayow_p2 жыл бұрын

    Great stuff!

  • @shawnp0wers

    @shawnp0wers

    2 жыл бұрын

    Thanks!!!

  • @philmerHD
    @philmerHD2 жыл бұрын

    I love this thank you.

  • @shawnp0wers

    @shawnp0wers

    2 жыл бұрын

    Thank YOU, Philip! :)

  • @jimc1499
    @jimc14995 ай бұрын

    Straight forward videos🎉

  • @shawnp0wers

    @shawnp0wers

    4 ай бұрын

    Thank you!

  • @ahmedghallab5342
    @ahmedghallab5342 Жыл бұрын

    شكرا💙thanks

  • @ik04
    @ik042 жыл бұрын

    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

    2 жыл бұрын

    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)

  • @user-wm4xv6kn1w
    @user-wm4xv6kn1w3 ай бұрын

    Wow zip/unzip seem so much easier!

  • @teamvigod
    @teamvigod2 жыл бұрын

    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

    2 жыл бұрын

    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

    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

    2 жыл бұрын

    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

    2 жыл бұрын

    @@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

    2 жыл бұрын

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

  • @AhenfoKojo
    @AhenfoKojo8 ай бұрын

    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?