| ||
Capability | Command |
---|---|
Creates a "tarball" (tar-based archive) | tar cvf file.tar file[s] example: tar cvf images.tar *.jpg |
Extracts a tarball | tar xvf file.tar example: tar xvf images.tar |
Creates a tarball with gzip compression | tar czvf file.tar.gz file[s] example: tar czvf images.tar.gz *.jpg |
Extracts a tarball with gzip compression | tar xzvf file.tar.gz example: tar xzvf images.tar.gz |
Creates a tarball with bzip2 compression | tar cjvf file.tar.bz2 file[s] example: tar cjvf images.tar.bz2 *.jpg |
Extracts a tarball with bzip2 compression | tar xjvf file.tar.bz2 example: tar xjvf images.tar.bz2 |
Views the files in a tarball add z for gzip compression add j for bzip2 compression | tar tvf file.tar example: tar jtvf images.tar.bz2 |
Creates a Zip archive | zip file.zip file[s] example: zip images.zip *.jpg |
Extracts a Zip archive | unzip file.zip example: unzip images.zip |
Views the files in a Zip archive | zip l file.zip file example: zip -l images.zip |
| ||