Differences between revisions 1 and 2
Revision 1 as of 2020-02-20 15:07:25
Size: 684
Comment:
Revision 2 as of 2020-02-20 15:09:09
Size: 698
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Compression = = Compression/Decompression =

Compression/Decompression


tar

Create

tar -cvf archive.tar file1 file2 file3
  • c for create

  • f for output filename

  • v for verbose

Create gzip-compressed

tar -czvf archive.tar.gz file1 file2 file3
  • z for gzip compression

Create gzip-compressed, password-protected

tar -czvf archive.tar.gz file1 file2
gpg -c archive.tar.gz

Extract all

tar -xvf archive.tar
  • x for extract

List all

tar -tf archive.tar

* t for something... I'm not actually sure what


CategoryRicottone

Tar (last edited 2023-04-08 13:33:22 by DominicRicottone)