921
you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 14 points 3 months ago* (last edited 3 months ago)

I use the command line every day, but can't be bothered with all the compression options of tar and company.

zip -r thing.zip things/ and unzip thing.zip are temptingly more straightforward.

Need more compression? zip -r -9 thing.zip things/. Need a faster option? Use a smaller digit.

[-] janAkali@lemmy.one 15 points 3 months ago* (last edited 3 months ago)

Zip is fine (I prefer 7z), until you want to preserve attributes like ownership and read/write/execute rights.

Some zip programs support saving unix attributes, other - do not. So when you download a zip file from the internet - it's always a gamble.
Tar + gzip/bz2/xz is more Linux-friendly in that regard.

Also, zip compresses each file separately and then collects all of them in one archive.
Tar collects all the files first, then you compress the tarball into an archive, which is more efficient and produces smaller size.

load more comments (7 replies)
this post was submitted on 06 Jun 2024
921 points (99.0% liked)

linuxmemes

20707 readers
3280 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS