5 ms·
* A replacement front-end for "tar" and various compressors Could you elaborate on this? I feel like this is something that could save people hours of time. I'
by 7373737373 5y ago
* A replacement front-end for "tar" and various compressors
Could you elaborate on this? I feel like this is something that could save people hours of time. I'm so incredibly sick of the various decompression flags and tools, (de)compressing something on the commandline should be as easy as it is with a GUI.
- capableweb 5y agoI've memorized a total of two commands from decompressing things (`tar xfv $file` and `unzip $file`) and one for compressing (`tar cf $archive.tar $file1 $file2 $directory`) which seems to have done everything I've wanted for more than 20 years of unix usage. Is there something I'm missing out on? Sometimes, a `gunzip` or `7z` has been needed, but they are far apart that I can look it up each time. I'm not sure how I can save hours of time as non-tar or non-zip files is not something I often come across.
- d21d3q 5y agohttps://xkcd.com/1168/ https://xkcd.com/1168/
- zvr 5y agoIf you're using GNU tar, there are four short options to specify compression/decompression: -Z for compress, -z for gzip, -j for bzip2 and -J for xz. Using long options, you can specify --compress, --gzip, --bzip2, --xz for the same, or even --lzip, --lzma, --lzop or --zstd for others.
- IYasha 5y agoThat's exactly why people hate tar/UNIX generally. Tons of parameters that don't EVEN CLOSELY represent their purpose. For example: -j -J if noone told me, I'd assume they were "join" or "jump", or something. PS: zcvf zxfv, and, - surprise, surprise! - by default tar deletes source archive!
- yesenadam 5y agotar czvf "create ze vucking file" tar xzvf "extract ze vucking files" source: https://news.ycombinator.com/item?id=18909789 https://news.ycombinator.com/item?id=18909789
- telotortium 5y agoI just use dtrx: https://github.com/moonpyk/dtrx https://github.com/moonpyk/dtrx. That only does decompression, but that's generally good enough for me and supports basically everything (even more exotic stuff like Java JARs and DOCX, which are both ZIP archives under the hood).