Difference between revisions of "Tar"

From wikieduonline
Jump to navigation Jump to search
Line 27: Line 27:
  
  
== Related commands ==
+
== Related terms ==
 
* <code>[[docker save]]</code>
 
* <code>[[docker save]]</code>
 
* <code>[[docker load]]</code>
 
* <code>[[docker load]]</code>
Line 33: Line 33:
 
* <code>[[progress]]</code>
 
* <code>[[progress]]</code>
 
* [[UID]] and [[GID]]
 
* [[UID]] and [[GID]]
 +
* <code>[[file changed as we read it]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 07:42, 25 June 2020

https://en.wikipedia.org/wiki/Tar_(computing)

http://man7.org/linux/man-pages/man1/tar.1.html

-c (--create)
-remove-files


  • tar -cf new_file.tar /path/folder/to/tar
  • tar -cvf new_file.tar /path/folder/to/tar
-c (--create)
  • tar -Jcvf new_file.tar.xz /path/folder/to/tar or tar Jcvf new_file.tar.xz /path/folder/to/tar[1]
-J, --xz
-j, --bzip2
--lzip Filter the archive through lzip
--lzma Filter the archive through lzma
--lzop Filter the archive through lzop
--no-auto-compress Do not use archive suffix to determine the compression program
-z, --gzip, --gunzip, --ungzip Filter the archive through gzip
-Z, --compress, --uncompress Filter the archive through compress
--zstd Filter the archive through zstd


Compress directory using xz multithread capabilities

tar c your_directory | xz -T0 -c > your_file_name.tar.xz


Related terms

See also

  • https://stackoverflow.com/a/18855909
  • Advertising: