this post was submitted on 18 Sep 2023
819 points (98.0% liked)

Linux

48323 readers
771 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] aard@kyu.de 19 points 1 year ago (3 children)

You also don't need the dash for the short options.

Also, if you're compressing with bzip2 and have archives bigger than a few megabytes I'll like you a lot more if you do it with --use-compress-prog=pbzip2

[–] sebastiancarlos@lemmy.sdf.org 30 points 1 year ago* (last edited 1 year ago) (1 children)

You also don’t need the dash for the short options.

True, but I refuse to entertain such a non-standard option format. It's already enough to tolerate find's.

[–] aard@kyu.de 17 points 1 year ago (2 children)

Technically the notation with dashes is the non-standard one - the dash form is a GNU addition. A traditional tar on something like Solaris or HP-UX will throw an error if you try the dash notation.

[–] sebastiancarlos@lemmy.sdf.org 25 points 1 year ago (1 children)

It's also traditional to eat raw meat, but we discovered fire at some point.

[–] aard@kyu.de 8 points 1 year ago (3 children)

Don't try to take my raw ground pork away from me.

[–] Damage@feddit.it 3 points 1 year ago

I got toxoplasmosis that way

[–] lvxferre@lemmy.ml 3 points 1 year ago (1 children)

my raw ground pork away from me.

Who are you, the Mett demon?
Matt Damon made out of mett\

(It works great with beef, too. Bonus points for the raw yolk over it. If not homemade though there's literally one bar that I trust with this, salmonella is not fun.)

[–] aard@kyu.de 2 points 1 year ago

Not enough onions. Your average mettigel has better mett/onion ratio.

[–] leo@lemmy.linuxuserspace.show 1 points 1 year ago (2 children)

That’s an audible “yuck” from me, man. Well done!

[–] bjoern_tantau@swg-empire.de 3 points 1 year ago

Looks like you Mett your match.

[–] Blizzard@lemmy.zip 3 points 1 year ago

Can't be well done if it's raw.

I like the dashes, they make the options look like options to me.

[–] killeronthecorner@lemmy.world 10 points 1 year ago (1 children)

You also don't need the dash for the short options.

You know when you meet someone and you're just like "oh boy, yeah, they're evil. No humanity at all"

[–] exscape@kbin.social 7 points 1 year ago

ps aux says hi!

[–] programmer_belch@lemmy.dbzer0.com 2 points 1 year ago (2 children)

I think the -j also compresses with bzip2 but I'm not sure if this is defined behavior or just a shortcut

[–] aard@kyu.de 3 points 1 year ago (1 children)

Yes, but I'm asking you to use pbzip. bzip at best utilizes one core, both for packing and unpacking. pbzip uses as many cores as IO bandwith allows - with standard SATA SSDs that's typically around 30.

pbzip can only utilize multiple cores if the archive was created with it as well.

[–] programmer_belch@lemmy.dbzer0.com 2 points 1 year ago (1 children)

Does something similar happen using xz?

[–] programmer_belch@lemmy.dbzer0.com 3 points 1 year ago (1 children)

I've searched for it and xz also doesn't use multithreading by default, you can change the program tar uses to compress by passing the -I option. For xz using all possible CPU threads:

tar -cv -I 'xz -6 -T0' -f archive.tar.xz [list of directories]

The number indicates the compression ratio, the higher the number, the more compressed the archive will be but it will cost more in terms of memory and processing time

Thanks for answering your own question, this is useful information.

[–] tony@lemmy.hoyle.me.uk 3 points 1 year ago

There's nothing technically wrong with using xjf rather than xzf, but it'll bite you if you ever use a non-linux platform as it's a GNU extension. I'm not even sure busybox tar supports it.