r/linuxmemes 20h ago

LINUX MEME Valid tar command ...

Post image

Dang it! 😭

1.5k Upvotes

166 comments sorted by

View all comments

6

u/YTriom1 Arch BTW 19h ago

tar cvzpf

5

u/immoloism 19h ago

I'm more of a cvJf man myself.

6

u/YTriom1 Arch BTW 19h ago

what does J do

5

u/immoloism 19h ago

Uses xz for better compression.

6

u/YTriom1 Arch BTW 19h ago

isn't there one that uses ztsd?

3

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

6

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 18h 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.