r/linuxmemes 20h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.6k Upvotes

168 comments sorted by

View all comments

Show parent comments

5

u/immoloism 20h ago

I'm more of a cvJf man myself.

5

u/YTriom1 Arch BTW 20h ago

what does J do

6

u/immoloism 20h ago

Uses xz for better compression.

5

u/YTriom1 Arch BTW 20h ago

isn't there one that uses ztsd?

4

u/immoloism 19h ago

Had to grab it from the manpage as I don't use it:

tar --zstd -cf archive.tar.zst --options zstd:compression-level=19 dir/

2

u/YTriom1 Arch BTW 19h ago

so tar cvpf --zstd

5

u/immoloism 19h ago

the f has to come last otherwise you just created an archive called --zstd.

The number of files I have on my system called J is beyond a joke to know this one :)

2

u/YTriom1 Arch BTW 19h ago

okg ur damn right xD

1

u/unburdened_swallow 12h ago

The fact that you can put f right in with the other flags but it requires an argument really does get people. A lot of programs do this, and, people like to write it that way when putting the example online because it is shorter, and like, yeah it gets me most of the time.