this post was submitted on 06 Jun 2024
931 points (99.1% liked)

linuxmemes

21440 readers
884 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
    (page 2) 50 comments
    sorted by: hot top controversial new old
    [–] eager_eagle 14 points 5 months ago* (last edited 5 months ago) (9 children)

    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.

    load more comments (9 replies)
    [–] [email protected] 13 points 5 months ago (5 children)

    how about .tar.zip or .tar.rar?

    [–] [email protected] 9 points 5 months ago

    Kind of redundant. Both .zip and .rar store an index of files within the archive and are a bit 'inside-out' when it comes what we get from tar.gz.

    That is, ZIP is pretty close to what you'd get if you first gzipped all your files and then put them into a .tar.

    RAR does a little more (if I remember correctly), such as generating a dictionary of common redundancies between files and then uses that knowledge to compress the files individually, but better. Something akin to a .tar file is still the result though.

    load more comments (4 replies)
    [–] [email protected] 12 points 5 months ago

    That's fine. I'm use to being unrepresented in the arj, lha, and uc2 crew

    [–] [email protected] 11 points 5 months ago (2 children)

    If you download and extract the tarball as two separate steps instead of piping curl directly into tar xz (for gzip) / tar xj (for bz2) / tar xJ (for xz), are you even a Linux user?

    [–] [email protected] 13 points 5 months ago (4 children)

    I download and then tar. Curl pipes are scary

    load more comments (4 replies)
    load more comments (1 replies)
    [–] [email protected] 10 points 5 months ago

    .tar.xz

    ☠️

    [–] [email protected] 10 points 5 months ago

    one of the cool things about tar is that it's hard link aware

    [–] robolemmy 9 points 5 months ago (3 children)

    tar cvjf compressed-shit.tar.bz2 /path/to/uncompressed/shit/

    Only way to fly.

    load more comments (3 replies)
    [–] [email protected] 9 points 5 months ago

    Good ol -xvjpf

    [–] cley_faye 9 points 5 months ago

    .txz, I'm too lazy to type the full name

    [–] [email protected] 9 points 5 months ago

    I'm from tar.gz.gpg gang to keep away nasty storage providers

    [–] [email protected] 9 points 5 months ago

    I'm a 7z person.

    [–] TimeNaan 8 points 5 months ago (1 children)
    [–] dustyData 8 points 5 months ago

    Nothing, but I've read people who act as if tar files are some sort of alien artifact ready to rip their faces off.

    [–] [email protected] 8 points 5 months ago

    .tar.zst forever

    [–] Shardikprime 8 points 5 months ago

    This guy tar balls

    [–] [email protected] 7 points 5 months ago

    Bzip2 compression is often surprisingly good with text files, especially log files. It seems to "see" redundancies there - and logs often have a lot of it - far better than gzip and sometimes even lzma.

    Anyway, if I saw a bunch of tar.bz2 files, that's what I'd expect to find in them.

    load more comments
    view more: ‹ prev next ›