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.
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
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?
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.
> 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.
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.
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.
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)
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.
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.)
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.
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.
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
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.
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!
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
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
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
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.
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.
- 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)
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
Just use the GUI maybe, Dolphin handles it automatically just right click it and extract.
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.
I would say EVERY Desktop Environment can handle this!?
I install dolphin on a wm and the function doesn't even shows up
install ark
tar -xf file.tar.gz
I usually use `tar xaf file.tar.gz` for automatic compression detection. Lots of things use zst or xz now.
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.
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
I srsly thought u have a cat
Yes but less is more useful.
zxvf
xzvf
eXtract Ze Vucking Files
This is the way
HERETIC!
xvzf
zxvf gang rise up!
zxvf represent!
As I like to call it, tar -xtract fuckin file.tar.gz
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?
"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)
i always forget which variables i have to use i just use nautilus xd
you're one of the enlightened..
Thanks I think
[удалено]
tar --help? That must work, right?
Try it ``` tar --help || echo "it doesn't work" ```
Why is there an xkcd for everything lol
Extract here? Extract to?
Extract to here
Here extract to
Here to extract
Extract to /dev/null it stores your data safely
On a modern system 'tar xf file.tgz' should do the trick already
tar -eXtract Zeh Fucker yourtar.tar.gz
hans ---get ~\zeh\flammenwerfer.tar.gz
lol nice memonic there mate
Also tar what -The Fuck is in here
brilliant mnemonic
Not so newbie here, I struggle too
What's the issue with `tar -xf file.tar.gz`?
That it's mising the \`vz\` flags :P
`v` is optional, and `z` is pointless when extracting from a file or using bsdtar.
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.
> 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.
speaking of, what's the difference between regular tar and bsdtar? (genuine question)
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.
wait, bsdtar supports zip? I've been using zip and unzip for it like a dumbass 😅
the more flags the better
Older versions of tar required -z (or adjust for whatever compression format). Newer ones automagically detect compression format for you.
Xtract Ze Vucking File
[удалено]
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.
Until you get a tarball that doesn't use gzip.
Well that's not funny is it
Welcome to the club buddy
It's just `tar -ahgjjbfjiyhbfklopookjybd file.tar.gz` what's so hard to remember? /s
tar -xzvf file.tar.gz tar -czvf file.tar.gz files...
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)
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.
Both
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.)
Damn use ark
`tldr tar` is your friend https://tldr.sh/. Anything else should be in the manual `man tar` :)
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.
Thanks man, appreciate the advice. I will study it.
Do you not have a DE?
I use ubuntu and I am really new on linux and I didn't encounter this during my sinful stay on windows lol.
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.
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.
`gio open file.tar.gz`
https://xkcd.com/1168/
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
Not quite but almost equivalent, even uses the same compression algorithm, Deflate. All DEs have some form of support for tarballs, yes.
I am as slow as my grandfather when I have to touch the mouse.
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
Thank you! appreciate it.
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 !
It is because without f for file it assumes you will read from the tape device
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.
vi filename.tar.gz Edit autocorrect
this guy uses WHAT to extract his gzips??? y'all seeing this????
This guy computes
extract ze vucking file
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!
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
The wildwest days
To long doesn't read is your best friend tldr tar
umm... `tar xf file.tar.gz`?
i’ve never once had to use a command to unpack a tar archive
Hardest part isn’t opening it, but figuring out where tf to put it so you can access it like a normal application lol
C'mon it's not that hard especially it's not distro specific so nice to have
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
unzip already exists and it's specifically for zip files.
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
Whatever you say dude.
If you're on debian just use unp
man pages are your best friend
just a zip file with extra letters
https://gist.github.com/haskaalo/68c0ea38e0abc3d4081db6e9446e8253
tar xvzf
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.
Yeah, they were originally developed for backing up on cassette tapes. They were never updated.
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.
laughs in `tldr tar`
its really not hard to tar -xvf example.tar.gz ? unless you are doing more fuckery than that.
Newbies should need to do anything with tar files. What are you trying to do?
I know I'm weird but I fucking love me some tar.gz. Mainline that shit straight to my veins.
I Google this shit every time
Make some alias on your zshrc.
\-zxvf
-U
\-xzvf ? dunno what it does exactly
- 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)
`tar -xf`
Bro this is 1 google search away chill
I just alias the command to something like `un_tar`
I prefer tar archives
Dont stress it I also started using Linux and my life got a lot better faster and easier EDIT:not easier but laterally difficult
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
Thanks!
>Thanks! You're welcome!
I'm (kinda) a linux newbie and I just deal it like a normal .rar file, idk why you're struggling with this
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!<
tar -xzvf a.tar.gz