Difference between revisions of "Linux command: tar"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 18: | Line 18: | ||
tar -jtvf file.tar.bz2 | tar -jtvf file.tar.bz2 | ||
</nowiki> | </nowiki> | ||
| + | Note: .gz files are decompressed with <nowiki>gunzip file.gz</nowiki> | ||
Revision as of 12:23, 14 January 2017
#compress .tar.gz tar -zcvf /var/my-backup.tar.gz /home/rafa/ #view file contents tar -ztvf file.tar.gz #uncompress .tar.gz tar -zxvf archive.tar.gz #uncompress .txz tar Jxvf file.txz # uncompress .tar.xz tar -xvf file.tar.xz # view tar.bz2 contents tar -jtvf file.tar.bz2
Note: .gz files are decompressed with gunzip file.gz