However, if you must, using those commands from the command line is fine. Best to have a habit of using -d or -decompress instead of unxz as well. The docs recommend this in case you are using this for scripting. Note: unlike Rafael's answer, use xz -dc instead of catxz. To echo Rafael van Horn, to uncompress & untar (see note below): xz -dc | tar x To compress a directory and create a TAR.GZ file: tar -czvf directorypath. To create a TAR directory: tar -cvf archivename.tar directorypath. z to manually set xz to zip, though it defaults to zipping if not otherwise directed. Now, to compress files or directories using tar, you can simply use the following commands. I often use -k to -keep the original file and -9 for really heavy compression. Where -4e is, use your own compression options. glob qualifier: tar cf mydir.tar mydir/ (.) Omit -C startdir and replace.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |