3 ms·
ick, the invocation is `tar tJvf`? Granted, I can alias it but a capital J is just about the worst option letter I can think of.
by eximius 11y ago
ick, the invocation is `tar tJvf`? Granted, I can alias it but a capital J is just about the worst option letter I can think of.
- LeoPanthera 11y agoI can never remember the shortcuts so I always do: tar -cv "folder" | xz >"out.tar.xz"
- cellularmitosis 11y agoUsing lzop got me into that habit. Often, the fastest way to transfer a directory from one machine to another is: hostA$ tar c mydir | lzop | socat - tcp-listen:1234 hostB$ socat tcp:hostA:1234 | lzop -d | tar x As the network gets slower and the CPU's get faster, you substitute a more heavyweight compression command.
- breadbox 11y agoGNU tar also has easy-to-remember long options for all the major compression programs: --gzip, --xz, --lzop, --lzma, --lzip.
- breadbox 11y agoNot many single-letter options were available. Tar is kind of like ls that way. At least it's easy to remember for those of us who already learned to use lowercase-j for bzip2.
- deleted 11y ago[deleted]
- mpnordland 11y agoJust do tar -xf It works on pretty much anything
- miffe 11y agoWhen unpacking you can leave the compression method flag out, tar will figure out which compression method is used by itself. And when packing you can use -a, then tar selects which compression method to use based on the filename.