Archive Commands

Table of Contents

How to create archive

tar --totals --create --verbose --file archive.tar file1 file2 file3

For much more files

tar --totals -cvf archive.tar file1 file2 file3

Creck file in archive

tar -tf archive.tar

Extract files

tar -xvf archive.tar

Extract files to another dir

tar -C "Test" -xvf archive.tar

Create archive

tar -czvf archive.tar.gz file1 file2 file3

Extract somefile 7z only files

7z e somefile.7z

Extract somefile 7z full path

7z x somefile.7z

List files 7z archive

7z l somefile.7z