News for hackers. Stuff that matters.
Re:Ask HN: Have you created programs for only your personal ... by 7373737373 on Thursday April 14, 2022 @07:40AM (#31025552)
* 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.

Re:Ask HN: Have you created programs for only your personal ... by capableweb on Thursday April 14, 2022 @07:50AM (#31025615)
I'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.
Re:Ask HN: Have you created programs for only your personal ... by telotortium on Thursday April 14, 2022 @04:48PM (#31033079)
I just use 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).
Re:Ask HN: Have you created programs for only your personal ... by zvr on Thursday April 14, 2022 @08:58AM (#31026362)
If 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.
Re:Ask HN: Have you created programs for only your personal ... by IYasha on Friday April 15, 2022 @03:59AM (#31037631)
That'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!
Re:Ask HN: Have you created programs for only your personal ... by yesenadam on Friday April 15, 2022 @05:57PM (#31046394)
tar czvf "create ze vucking file"

tar xzvf "extract ze vucking files"

source: https://news.ycombinator.com/item?id=18909789

Re:Ask HN: Have you created programs for only your personal ... by d21d3q on Thursday April 14, 2022 @08:05AM (#31025770)