Difference between revisions of "Tar"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/18855909
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
https://en.wikipedia.org/wiki/Tar_(computing) | https://en.wikipedia.org/wiki/Tar_(computing) | ||
+ | == Options == | ||
http://man7.org/linux/man-pages/man1/tar.1.html | http://man7.org/linux/man-pages/man1/tar.1.html | ||
-c (--create) | -c (--create) | ||
-remove-files | -remove-files | ||
− | + | == Examples == | |
* <code>tar -cf new_file.tar /path/folder/to/tar</code> | * <code>tar -cf new_file.tar /path/folder/to/tar</code> | ||
* <code>tar -cvf new_file.tar /path/folder/to/tar</code> | * <code>tar -cvf new_file.tar /path/folder/to/tar</code> |
Revision as of 10:53, 26 July 2020
https://en.wikipedia.org/wiki/Tar_(computing)
Options
http://man7.org/linux/man-pages/man1/tar.1.html
-c (--create) -remove-files
Examples
tar -cf new_file.tar /path/folder/to/tar
tar -cvf new_file.tar /path/folder/to/tar
-c (--create)
With compression
-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
- Data compression: LZMA,
xz, unxz
,xz -t, xz -q, xz -T0, xz -9, zstd
, Igor Pavlov
Advertising: