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

linuxmemes

20471 readers
998 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
top 38 comments
sorted by: hot top controversial new old
[–] oleorun@real.lemmy.fan 3 points 2 months ago* (last edited 2 months ago) (3 children)
[–] SpeakinTelnet@sh.itjust.works 5 points 2 months ago* (last edited 2 months ago) (1 children)

tar -h

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

[–] DmMacniel@feddit.de 0 points 2 months ago (1 children)
[–] zaphod@sopuli.xyz 0 points 2 months ago (1 children)

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

[–] jj4211@lemmy.world 0 points 2 months ago (1 children)

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

[–] bhamlin@lemmy.world 0 points 2 months ago (1 children)

That's still kinda new. It didn't always do that.

[–] jj4211@lemmy.world 1 points 2 months ago

Per https://www.gnu.org/software/tar/, it's been the case since 2004, so for about 19 and a half years...

[–] marcos@lemmy.world -1 points 2 months ago

That's yet another great joke that GNU ruined.

[–] MonkderDritte@feddit.de 1 points 2 months ago (2 children)
[–] stoy@lemmy.zip 0 points 2 months ago (3 children)
[–] pelya@lemmy.world 1 points 2 months ago

tar c file | pxz > file.tar.xz

[–] MonkderDritte@feddit.de 0 points 2 months ago* (last edited 2 months ago)

pixz is in "extra" repo in arch. Same as pigz.

[–] uis@lemm.ee -1 points 2 months ago

Same algo as in 7z

[–] bjoern_tantau@swg-empire.de 0 points 2 months ago (1 children)

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

[–] palordrolap@kbin.run 1 points 2 months ago (1 children)

wait until you learn about .tar.lz

[–] MonkderDritte@feddit.de 1 points 2 months ago

Good for image backups, after zeroing empty space.

[–] qjkxbmwvz@startrek.website 1 points 2 months ago (1 children)

When I'm feeling cool and downloading a *.tar* file, I'll wget to stdout, and tar from stdin. Archive gets extracted on the fly.

I have (successfully!) written an .iso to CD this way, too (pipe wget to cdrecord). Fun stuff.

[–] Midnight1938@reddthat.com 0 points 2 months ago (1 children)

Something like wget avc.com | tar xvf ?

[–] user224@lemmy.sdf.org 1 points 2 months ago (1 children)

Almost, I think.

wget -O - http://example.com/archive.tar | tar -xvf -
[–] Midnight1938@reddthat.com -1 points 2 months ago (1 children)

Didnt think this would ever work

[–] user224@lemmy.sdf.org 1 points 2 months ago

TAr stands for Tape Archive. Tapes store data sequentially. Downloads are done sequentially.

It's really just like a far away tape drive.

[–] EddyBot@discuss.tchncs.de 1 points 2 months ago (1 children)
[–] youRFate@feddit.de 0 points 2 months ago

Right, I usually do that or lz4.

[–] pineapplelover@lemm.ee 1 points 2 months ago (2 children)
[–] TaintPuncher@lemmy.ml 0 points 2 months ago (1 children)
[–] BaroqueInMind@lemmy.one 1 points 2 months ago

Small ~~dick~~ package kings/queens rise up.

[–] youRFate@feddit.de 0 points 2 months ago (1 children)
[–] user224@lemmy.sdf.org 0 points 2 months ago (1 children)

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

It is open-source too.

[–] youRFate@feddit.de 0 points 2 months ago

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

[–] renzev@lemmy.world 0 points 2 months ago (2 children)

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
[–] sh__@lemmy.world 0 points 2 months ago (1 children)

What weird Japanese zip files are you handling?

[–] renzev@lemmy.world 1 points 2 months ago* (last edited 2 months ago)

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.

[–] FIST_FILLET@lemmy.ml 0 points 2 months ago (1 children)

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

[–] Scrollone@feddit.it -1 points 2 months ago

Happy cake day!

[–] ordellrb@lemmy.world 0 points 2 months ago (1 children)

Me removing the plastic case of a 2.5' sata ssd to make it physically smaller

[–] iix@lemmy.world 1 points 2 months ago

That's a big drive.

[–] DmMacniel@feddit.de 0 points 2 months ago

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