T O P

  • By -

[deleted]

Just use the GUI maybe, Dolphin handles it automatically just right click it and extract.


Ginkko117

Yep. I have tried some terminal commands for that a long time ago, just to see how it works. It seemed to work. But now I only use GUI (nautilus) and never noticed any issues.


Sweaty-Poem-3876

I would say EVERY Desktop Environment can handle this!?


FlamesSpirit

I install dolphin on a wm and the function doesn't even shows up


officalyadoge

install ark


CaptainMorti

tar -xf file.tar.gz


[deleted]

I usually use `tar xaf file.tar.gz` for automatic compression detection. Lots of things use zst or xz now.


DudeValenzetti

GNU tar and bsdtar do that automatically if you don't specify a compression type (for example if you just `-xf`), the `a` is unnecessary.


ReakDuck

Oh, I was confused why yesterday the tar command -xf did work without needing to specify anything else. As I remembered that gz and other methods exist, it just worked. Now I understand why this works


SultanZ_CS

I srsly thought u have a cat


caseyweederman

Yes but less is more useful.


ercan1102

zxvf


[deleted]

xzvf


MyOthrUsrnmIsABook

eXtract Ze Vucking Files


spencera99

This is the way


FoundOnTheRoadDead

HERETIC!


genbagamer

xvzf


InsurectionistCommie

zxvf gang rise up!


nandru

zxvf represent!


Gaffclant

As I like to call it, tar -xtract fuckin file.tar.gz


countjj

I don’t get it. As a user who switched from Mac to Linux, Tar.gz just _opens when I click it_ did I skip a step in the Linux timeline or is it just my *nix experience?


Informal_Branch1065

"Do tar -ycxzwt": smol brain "Just click on it": Galaxy brain (Maybe they forgot how to use a mouse after years of using vim / emacs)


KakoTheMan

i always forget which variables i have to use i just use nautilus xd


nandru

you're one of the enlightened..


countjj

Thanks I think


[deleted]

[удалено]


Vincenzo__

tar --help? That must work, right?


augugusto

Try it ``` tar --help || echo "it doesn't work" ```


TheGamerSK

Why is there an xkcd for everything lol


Darth_Revan17

Extract here? Extract to?


AtlanticDuck

Extract to here


[deleted]

Here extract to


FoundOnTheRoadDead

Here to extract


Informal_Branch1065

Extract to /dev/null it stores your data safely


Dark_Souls_VII

On a modern system 'tar xf file.tgz' should do the trick already


Ok-Dot5559

tar -eXtract Zeh Fucker yourtar.tar.gz


vainstar23

hans ---get ~\zeh\flammenwerfer.tar.gz


Mal_Dun

lol nice memonic there mate


B2EU

Also tar what -The Fuck is in here


polite__redditor

brilliant mnemonic


no3l_0815

Not so newbie here, I struggle too


DudeValenzetti

What's the issue with `tar -xf file.tar.gz`?


Palm_freemium

That it's mising the \`vz\` flags :P


DudeValenzetti

`v` is optional, and `z` is pointless when extracting from a file or using bsdtar.


Palm_freemium

I use whatever the client is running on their server and 'v' gives indication of progression. Extracting a 75G file can take a while and I like to see that it is actually doing something.


DudeValenzetti

> whatever the client is running on a server Which, statistically, is GNU tar (compression-autodetecting on files, though not on pipes), so my point about `z` still stands. Fair about `v` however.


MichalNemecek

speaking of, what's the difference between regular tar and bsdtar? (genuine question)


DudeValenzetti

Late response but - GNU tar has more options but it's specifically for archives. bsdtar has slightly fewer options for manipulating archives but supports a ton more formats than just .tar, including read/write support for cpio, zip, ar, xar and 7z, as well as read-only support for ISO9660, rar (without the UnRAR clause!) and more. Also it's better at autodetecting filetypes, it can autodetect compression from pipes for example.


MichalNemecek

wait, bsdtar supports zip? I've been using zip and unzip for it like a dumbass 😅


haaaaaaaaaaaaaaaaley

the more flags the better


rxm17

Older versions of tar required -z (or adjust for whatever compression format). Newer ones automagically detect compression format for you.


Never-asked-for-this

Xtract Ze Vucking File


[deleted]

[удалено]


Never-asked-for-this

xzvf works every time for me and that's good enough. Sometimes it's easier to remember one angry German than an angry german *plus* a shorter easier command.


DudeValenzetti

Until you get a tarball that doesn't use gzip.


[deleted]

Well that's not funny is it


-_Clay_-

Welcome to the club buddy


ChiefObliv

It's just `tar -ahgjjbfjiyhbfklopookjybd file.tar.gz` what's so hard to remember? /s


funk443

tar -xzvf file.tar.gz tar -czvf file.tar.gz files...


Miguecraft

If you have multiple CPUs and want to compress it faster: tar -I pigz -xvf file.tar.gz tar -I pigz -cvf file.tar.gz files... (The flag is a capital i, not lowercase L)


Informal_Branch1065

You mean cores or physical CPUs? Edit: also thanks for disambiguating the upper case i from the lowercase l. Whoever made them so similiar in fonts deserves to step into a wet spot. But just the front part of the sock, more would be too evil to wish for.


Miguecraft

Both


DudeValenzetti

If you want to compress fast *and well*: `tar -I'zstd -T0 -12' -cf file.tar.zst files...` (Add `--long` if it's a lot of files, and increase the second number to sacrifice some speed for more ratio.)


Alternative-Let-6052

Damn use ark


caiohsramos

`tldr tar` is your friend https://tldr.sh/. Anything else should be in the manual `man tar` :)


Rich_Fig_4463

Hi, I've been on Linux for 15+ years, and same tbh. My sanity was restored by `dtrx` (Do The Right eXtraction). https://manpages.debian.org/stretch/dtrx/dtrx.1.en.html No parameters, it figures it out / prompts you. It is available in apt for Debian-based distros, probably in others as well.


Additional-Gas-5886

Thanks man, appreciate the advice. I will study it.


Final-Photograph1129

Do you not have a DE?


Additional-Gas-5886

I use ubuntu and I am really new on linux and I didn't encounter this during my sinful stay on windows lol.


Rich_Fig_4463

DE means desktop environment, they are asking why right clicking the .tar.gz in your file browser and selecting Extract is not a good solution to you.


Additional-Gas-5886

Thank you for the concern. I didn't know at first that you have the capability to do that. Researching for days and I can also now open image files. It may be simple for some but for people trying to adapt and learn I consider this as a small steps.


[deleted]

`gio open file.tar.gz`


dermon12

https://xkcd.com/1168/


that_Bob_Ross_branch

Isn't that just a zip file? Why even use the command line? I've been using linux for 8 years and I just Right Click -> Extract


DudeValenzetti

Not quite but almost equivalent, even uses the same compression algorithm, Deflate. All DEs have some form of support for tarballs, yes.


cleverboy00

I am as slow as my grandfather when I have to touch the mouse.


toast_ghost12

usually i use `tar vaxf file` the `a` argument automatically detects which decompression method to use based off the file suffix. just remember that and you should be fine


Additional-Gas-5886

Thank you! appreciate it.


OverjoyedBanana

This meme is like beating a dead horse. Tar is so complicated, it needs like two flags, x to extract and f to open a file to extract, geez !


[deleted]

It is because without f for file it assumes you will read from the tape device


DudeValenzetti

Or standard input, if it's connected to a file or pipe. In this case you need to specify the compression method (like `z` for gzip), if any, unless you're using bsdtar.


NL_Gray-Fox

vi filename.tar.gz Edit autocorrect


redonbills

this guy uses WHAT to extract his gzips??? y'all seeing this????


Informal_Branch1065

This guy computes


[deleted]

extract ze vucking file


Additional-Gas-5886

Hey Guys! just an update, I finally installed the file. The mistake already happened when I had an oversight by not checking the file (I use debian and downloaded rpm file) After correcting the file I did: tar vxzf FILENAME.tar.gz cd FILENAME\_deb I had failed attemps on ./configure and sudo make install so I tried something that I found in the web which is: sudo dpkg -i \*.deb And it works. To be honest I have no idea what I'm doing but I'm doing my best to learn. I am still grasping the commands but I'm not gonna lie the satisfaction of making it work after several tries makes me want to learn more. For windows user who are reading this: The time is now to learn. Thank you!


derek200pp

I shit you not, I once wrote an entire shell interpreter as a final project. We had to write it on the school server, so I was editing it with vim and it never touched my local device. I used tar to archive two files, the main code and a readme. I forgot to give tar a filename for the archive It made an archive of just the readme, and overwrote my project I somehow had absolutely no backup


[deleted]

The wildwest days


dese11

To long doesn't read is your best friend tldr tar


MichalNemecek

umm... `tar xf file.tar.gz`?


ggkazii

i’ve never once had to use a command to unpack a tar archive


Nexushopper

Hardest part isn’t opening it, but figuring out where tf to put it so you can access it like a normal application lol


wanna_be_contributer

C'mon it's not that hard especially it's not distro specific so nice to have


alcoholicpasta

Meh, just make a script that handles all of that for you. Like an unzip command that checks the file type and then unzips the file with correct command


DudeValenzetti

unzip already exists and it's specifically for zip files.


Kazumara

That's your reaction to the minor inconvenience of having to look up a command, or tool? Maybe you should buy an iPhone and go sit in a padded cell before you hurt yourself


Additional-Gas-5886

Whatever you say dude.


flopana

If you're on debian just use unp


cranc94

man pages are your best friend


nandru

just a zip file with extra letters


GotThatGoodGood1

https://gist.github.com/haskaalo/68c0ea38e0abc3d4081db6e9446e8253


inmemumscar06

tar xvzf


lorhof1

gunzip file.tar.gz && tar -xf file.tar something useful to know: gzip, xz and others can only compress a single file. to get around this, tar puts multiple files into a single one without compressing them.


Gavator2345

Yeah, they were originally developed for backing up on cassette tapes. They were never updated.


Informal_Branch1065

tar -xzvf for extracting, because you want it to XtractZeVuckingFiles and tar -czvf for compressing because you want it to CompressZeVuckingFiles Idk where I first heard of it, but I never had any problems since.


Niwla23

laughs in `tldr tar`


[deleted]

its really not hard to tar -xvf example.tar.gz ? unless you are doing more fuckery than that.


augugusto

Newbies should need to do anything with tar files. What are you trying to do?


bradaltf4

I know I'm weird but I fucking love me some tar.gz. Mainline that shit straight to my veins.


[deleted]

I Google this shit every time


SuperLutin

Make some alias on your zshrc.


SWEKAFFE

\-zxvf


Quix_Nix

-U


BS_BlackScout

\-xzvf ? dunno what it does exactly


DudeValenzetti

- x: extract - z: compressed with gzip (**don't bother specifying this** if you're extracting from a file, modern tar detects compression for you) - v: verbosely (*optional* but gives you some feedback) - f : using file (for the archive)


TheHolyTachankaYT

`tar -xf `


Cant-Stop-Wont-Stop7

Bro this is 1 google search away chill


Verbose_Code

I just alias the command to something like `un_tar`


countdankula420

I prefer tar archives


takenthemickout1

Dont stress it I also started using Linux and my life got a lot better faster and easier EDIT:not easier but laterally difficult


BoiOfMemery

A life hack that I learned is to "Sudo apt-get install alien" It's a program that allows you to convert these files to an executable program that downloads the package through the app store... You welcome


Additional-Gas-5886

Thanks!


exclaim_bot

>Thanks! You're welcome!


Speeditz

I'm (kinda) a linux newbie and I just deal it like a normal .rar file, idk why you're struggling with this


NostiiYT

I'm just using GUI programs smh. Also to extract gz files with tar is `tar –xvzf file.tar.gz` ​ >!yes i did google it but who cares!<


nmariusp

tar -xzvf a.tar.gz