tar
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/18855909
Options[edit]
http://man7.org/linux/man-pages/man1/tar.1.html
-c (--create) -remove-files -t or --list list content of tar file -v (--verbose) tar --help
Examples[edit]
tar -cf new_file.tar /path/folder/to/tartar -cvf new_file.tar /path/folder/to/tar
-c (--create)
Errors[edit]
With compression[edit]
-J, --xz-j, --bzip2--lzipFilter the archive through lzip--lzmaFilter the archive through lzma--lzopFilter the archive through lzop--no-auto-compress Do not use archive suffix to determine the compression program-z, --gzip, --gunzip, --ungzipFilter the archive through gzip-Z, --compress, --uncompressFilter 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
Errors[edit]
tar (child): Cannot connect to 2019-08-02T06: resolve failed tar: 2019-08-02T06\:00+04\:00.tar.xz: Cannot write: Broken pipe tar: Child returned status 128 tar: Error is not recoverable: exiting now
tar: .: file changed as we read it
Related terms[edit]
See also[edit]
tar,tar -J,docker-untar,--list,ar,tar -cvf, tar -xvf, tar --help- Data compression: LZMA,
xz, unxz,xz -t, xz -q, xz -T0, xz -9, zstd, Igor Pavlov,bzip2, gzip
Advertising: