3 ms·
I can never remember the shortcuts so I always do: tar -cv "folder" | xz >"out.tar.xz"
by LeoPanthera 11y ago
I 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.