910
you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 15 points 5 months ago* (last edited 5 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.

[-] lseif@sopuli.xyz 19 points 5 months ago

"yes i would love to tar -xvjpf my files"

-- statement dreamed up by the utterly insane

[-] programmer_belch@lemmy.dbzer0.com 2 points 5 months ago

Present, I'm the tar cvJf insane

[-] janAkali@lemmy.one 15 points 5 months ago* (last edited 5 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.

[-] UniversalFlamingo@lemmy.world 15 points 5 months ago
tar czf thing.tgz things/
tar xzf thing.tgz
[-] eager_eagle@lemmy.world 10 points 5 months ago

yes, and you still need zhe mnemonics

[-] brbposting@sh.itjust.works 2 points 5 months ago

There’s gotta be a buncha tools that Clippy into the terminal to say “did you mean ____?” right? Including some new ones where they trained/fine-tuned a language model on man pages?

Interesting it’s not the most popular thing to use a GUI and use shortcuts for everything you want to do while still having the option to click through a menu or wizard for whatever you haven’t memorized. I suppose the power and speed of the command line are difficult to match if you introduce anything else, and if you spend time using a user interface that’s time you can’t spend honing your command line skills.

[-] PoolloverNathan@programming.dev 3 points 5 months ago

There's thefuck, but it hasn't given me good suggestions.

[-] nocteb@lemmy.ml 4 points 5 months ago

The problem with that is that it will not preserve flags and access rights.

this post was submitted on 06 Jun 2024
910 points (100.0% liked)

linuxmemes

21410 readers
826 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