▲ | beala 4 days ago | |
Tough crowd. fwiw, `tar xzf foobar.tgz` = "_x_tract _z_e _f_iles!" has been burned into my brain. It's "extract the files" spoken in a Dr. Strangelove German accent Better still, I recently discovered `dtrx` (https://github.com/dtrx-py/dtrx) and it's great if you have the ability to install it on the host. It calls the right commands and also always extracts into a subdir, so no more tar-bombs. If you want to create a tar, I'm sorry but you're on your own. | ||
▲ | diggan 4 days ago | parent | next [-] | |
I used tar/unzip for decades I think, before moving to 7z which handles all formats I throw at it, and have the same switch for when you want to decompress into a specific directory, instead of having to remember which one of tar and unzip uses -d, and which one uses -C. "also always extracts into a subdir" sounds like a nice feature though, thanks for sharing another alternative! | ||
▲ | mkl 3 days ago | parent | prev [-] | |
> tar xzf foobar.tgz You don't need the z, as xf will detect which compression was used, if any. Creating is no harder, just use c for create instead, and specify z for gzip compression:
Same with listing contents, with t for tell:
|