187 points
*

Oblig. XKCD:

permalink
report
reply
228 points
*

tar -h

Edit: wtf… It’s actually tar -?. I’m so disappointed

permalink
report
parent
reply
218 points

boom

permalink
report
parent
reply
77 points
*

permalink
report
parent
reply
105 points

tar eXtactZheVeckingFile

permalink
report
parent
reply
27 points

Me trying to decompress a .tar file

permalink
report
parent
reply
5 points

Joke’s on you, .tar isn’t compression

permalink
report
parent
reply
18 points

You don’t need the v, it just means verbose and lists the extracted files.

permalink
report
parent
reply
8 points

You may not, but I need it. Data anxiety is real.

permalink
report
parent
reply
8 points

You don’t need the z, it auto detects the compression

permalink
report
parent
reply
60 points

tar -xzf

(read with German accent:) extract the files

permalink
report
parent
reply
28 points

Ixtrekt ze feils

permalink
report
parent
reply
19 points

German here and no shit - that is how I remember that since the first time someone made that comment

permalink
report
parent
reply
6 points

Same. Also German btw 😄

permalink
report
parent
reply
5 points

That’s so good I wish I needed to memorize the command

permalink
report
parent
reply
1 point

z is for gzip archives only.

tar xf for eXtract the File

permalink
report
parent
reply
21 points
*

tar -uhhhmmmfuckfuckfuck

permalink
report
parent
reply
8 points

The Fish shell shows me just the past command with tar So I don’t need to remember strange flags

permalink
report
parent
reply
4 points

I use zsh and love the fish autocomplete so I use this:

https://github.com/zsh-users/zsh-autosuggestions

Also have fzf for ctrl + r to fuzzy find previous commands.

I believe it comes with oh-my-zsh, just has to be enabled in plugins and itjustworks™

permalink
report
parent
reply
7 points

man tar

you never said I can’t run a command before it.

permalink
report
parent
reply
1 point

without looking, what’s the flag to push over ssh with compression

permalink
report
parent
reply
4 points

scp

permalink
report
parent
reply
1 point

not compressed by default

permalink
report
parent
reply
-11 points

That’s yet another great joke that GNU ruined.

permalink
report
parent
reply
95 points

Zip makes different tradeoffs. Its compression is basically the same as gz, but you wouldn’t know it from the file sizes.

Tar archives everything together, then compresses. The advantage is that there are more patterns available across all the files, so it can be compressed a lot more.

Zip compresses individual files, then archives. The individual files aren’t going to be compressed as much because they aren’t handling patterns between files. The advantages are that an error early in the file won’t propagate to all the other files after it, and you can read a file in the middle without decompressing everything before it.

permalink
report
reply
13 points

Yeah that’s a rather important point that’s conveniently left out too often. I routinely extract individual files out of large archives. Pretty easy and quick with zip, painfully slow and inefficient with (most) tarballs.

permalink
report
parent
reply
9 points

A tar directory also preserves file permissions. And can preserve groups/ownership if needed.

permalink
report
parent
reply
3 points

Can you evaluate the directory tree of a tar without decompressing? Not sure if gzip/bzip2 preserve that.

permalink
report
parent
reply
1 point
*

Nowhere in here do you cover bzip, the subject of this meme. And tar does not compress.

permalink
report
parent
reply
7 points

It’s just a different layer of compression. Better than gzip generally, but the tradeoffs are exactly the same.

permalink
report
parent
reply
2 points

Well, yes. But your original comment has inaccuracies due to those 2 points.

permalink
report
parent
reply
86 points

Obligatory shilling for unar, I love that little fucker so much

  • Single command to handle uncompressing nearly all formats.
  • No obscure flags to remember, just unar <yourfile>
  • Makes sure output is always contained in a directory
  • Correctly handles weird japanese zip files with SHIFT-JIS filename encoding, even when standard unzip doesn’t
permalink
report
reply
40 points

gonna start lovingly referring to good software tools as “little fuckers”

permalink
report
parent
reply
3 points

Happy cake day!

permalink
report
parent
reply
2 points

cheers!

permalink
report
parent
reply
6 points

What weird Japanese zip files are you handling?

permalink
report
parent
reply
8 points
*

Voicebanks for Utau (free (as in beer, iirc) clone of Vocaloid) are primarily distributed as SHIFT-JIS encoded zips. For example, try downloading Yufu Sekka’s voicebank: http://sekkayufu.web.fc2.com/ . If I try to unzip the “full set” zip, it produces a folder called РсЙ╠ГЖГtТPУ╞Й╣ГtГЛГZГbГgБi111025Бj. But unar detects the encoding and properly extracts it as 雪歌ユフ単独音フルセット(111025). I’m sure there’s some flag you can pass to unzip to specify the encoding, but I like having unar handle it for me automatically.

permalink
report
parent
reply
4 points

Ah, that’s pretty cool. I’m not sure I know of that program. I do know a little vocaloid though, but I only really listen to 稲葉曇(Inabakumori).

permalink
report
parent
reply
3 points

The same thing with zip, just use “unzip <file>” right?

permalink
report
parent
reply
2 points

I’m an atools kinda person

permalink
report
parent
reply
1 point

Looks cool, I’ll check it out

permalink
report
parent
reply
58 points

Where .7z at

permalink
report
reply
32 points

On windows.

permalink
report
parent
reply

7z is available for Linux as well (CLI only)

It is open-source too.

permalink
report
parent
reply
1 point

I know, but I’d say ppl on Linux tend to not use it.

permalink
report
parent
reply
25 points

.7z gang, represent

permalink
report
parent
reply
15 points

When I was on windows I just used 7zip for everything. Multi core decompress is so much better than Microsoft’s slow single core nonsense from the 90s.

permalink
report
parent
reply
6 points

Small dick package kings/queens rise up.

permalink
report
parent
reply
6 points

Yeah, 7z is the clear winner.

permalink
report
parent
reply
1 point
*

It’s much slower to decompress than DEFLATE ZIP though

permalink
report
parent
reply
47 points

.tar.xz

permalink
report
reply
12 points

xz is quite slow though

permalink
report
parent
reply

There’s several levels you can use to trade off additional space for requiring more processing power. That being said, I hate xz and it still feels slow AF every time I use it.

permalink
report
parent
reply
10 points

It starting 0.5 seconds slower than usual saved us all a bit of a headache as it turns out.

permalink
report
parent
reply
1 point
*

I hate 7z, it’s slow (at least for me) and for some reason I often have problems with these files

permalink
report
parent
reply
6 points

tar c file | pxz > file.tar.xz

permalink
report
parent
reply
3 points
*

pixz is in “extra” repo in arch. Same as pigz.

permalink
report
parent
reply
2 points

Same algo as in 7z

permalink
report
parent
reply
2 points

I had no idea about that!

permalink
report
parent
reply
4 points

Yeah, it’s similar enough to tar.gz to always confuse me.

permalink
report
parent
reply
16 points

wait until you learn about .tar.lz

permalink
report
parent
reply
5 points

Tar lzma nuts, amirite?

permalink
report
parent
reply
3 points

TAR LAZER!

permalink
report
parent
reply
3 points

Good for image backups, after zeroing empty space.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

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!

Community stats

  • 8.4K

    Monthly active users

  • 1.1K

    Posts

  • 61K

    Comments