4 ms·
As a side note, `dtrx` is a sane alternative to `tar` that do the right thing by default. http://brettcsmith.org/2007/dtrx/ http://brettcsmith.org/2007/dtrx/ J
by Buetol 11y ago
As a side note, `dtrx` is a sane alternative to `tar` that do the right thing by default. http://brettcsmith.org/2007/dtrx/ http://brettcsmith.org/2007/dtrx/
Just `dtrx yourarchive.tar.xz`.
- tazjin 11y agoI honestly don't understand the meme of "tar is so hard to use". You only need to know like five parameters (xcvfz) for 99% of use cases, and they're pretty easy to understand.
- TuringTest 11y agoFrom the manual: "In UNIX or short-option style, each option letter is prefixed with a single dash, as in other command line utilities. If an option takes argument, the argument follows it, either as a separate command line word, or immediately following the option. However, if the option takes an optional argument, the argument must follow the option letter without any intervening whitespace, as in -g/tmp/snar.db. Any number of options not taking arguments can be clustered together after a single dash, e.g. -vkp. Options that take arguments (whether mandatory or optional), can appear at the end of such a cluster, e.g. -vkpf a.tar." When you have several alternative optional syntaxes for the commands, and you mix them with several different mandatory syntaxes for the parameters, the result is way more complex than merely "know five simple parameters for 99% use cases". The following are all valid ways to do exactly the same thing: tar cfv a.tar /etc tar -cvf a.tar /etc tar -c -v -f a.tar /etc tar --create --file a.tar --verbose /etc tar --cre --file=a.tar --verb /etc This offers lots of flexibility, but also means that it will be hard to remember the exact syntax, and that examples that you come by on the net will all look wildly different, making it hard to learn the commands and create a habit by exposure to examples.
- MrBuddyCasino 11y agoLooks great, theres also a Brew formula. Not sure I'll remember "dtrx" though...
- CJefferson 11y agoIt might help if you remember it as "Do The Right eXtraction" (and hopefully tab-complete after dtr, to deal with the final x).