AffineConnection,

Now do a standard pax command.

FiskFisk33,

tar --help

Korbs,
@Korbs@lemmy.world avatar

Well, bye everyone.

gravitas_deficiency,

The fact that this thread contains, like, TONS of invalid invocations that people have been editing for correctness is fucking hilarious.

Also, QED 🤠

lambda,
@lambda@programming.dev avatar

tar --extract --file file.tar.gz

grrgyle,

All those years of using nautilus have made me weak

PoolloverNathan,

tar x

johannesvanderwhales,

tar --help

mdurell,

cpio is way worse

Emerald,

tar -xzvf file.tar

alyth,

That’s what I had in mind too. Tar’s arguments are really intuitive.

x - eXtract

z - use gZip

v - Verbose

f - File (requires the path as an argument)

UnculturedSwine, (edited )

tar -cvzf /etc/

Edit: we’re dead :(

Barzaria,

tar

MehBlah, (edited )

tar -zxvf yourmom.tgz /home/xkcd/yourmomnude/* This was wrong. I intended to be creating a file -zcvf.

brlemworld,

tar --help

JargonWagon,

That was my first thought too lol

grrgyle,

Rofl me too twins

arc,

I know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.

flying_sheep, (edited )
@flying_sheep@lemmy.ml avatar

Why remember/include the algorithm? Tar can infer that. It’s just bsdtar xf filename.* for everything. (bsdtar handles .zip as well)

Samsy,

The bomb said tar.

flying_sheep, (edited )
@flying_sheep@lemmy.ml avatar

Yes, and tar works the same, it just doesn’t handle zip files.

And even if we’re pedantic: bsdtar is Arch Linux’ executable name for a port of the tar command that is shipped by BSDs, so it’s also tar.

doggle,

tar --version

You’re welcome

bitwaba,

I’d have gone with tar --help

flying_sheep, (edited )
@flying_sheep@lemmy.ml avatar

It’s insane that this isn’t consistent.

Any combination of -h, -? and –help exists between tools (from 0 to all 3 of them)

FMEEE,

So would have been 1:4

zaphod,

Never seen -?, it’s either -h, –help, or -help for programs that just want to be different.

flying_sheep,
@flying_sheep@lemmy.ml avatar

One example for it is … tar!

www.man7.org/linux/man-pages/man1/tar.1.html

zaphod,

I suppose I usually try -h and if that doesn’t work I try the long version or the man page.

Aganim,

Sorry, the bomb was running MacOS. Your command was not valid and you’ve doomed us all.

Andrew15_5,
@Andrew15_5@mander.xyz avatar

It’s literally there at the bottom.

What isn’t valid is MacOS, it’s macOS now.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines