TAR extract:
1 |
tar -xf filename.tar |
TAR extract and view files (add v):
1 |
tar -xvf filename.tar |
TAR extract and view files (add v) to different directory
1 |
tar -xvf filename.tar -C /usr/test/ |
TAR create and exclude upload folder:
1 |
tar -c -z -v --exclude="abc/upload" -f abc.zip abc_folder |
TAR create:
1 2 |
tar -cf filename.tar filename tar -cf filename.tar folder_to_be_archived |
TAR create and view (add v):
1 |
tar -cvf filename.tar filename |
TAR create using ZIP compression:
1 |
tar -czf file.zip filename |
TAR create using BZIP2 compression:
1 |
tar -cjf file.bzip2 filename |
TAR create using 7zip compression (7z must exist):
1 |
tar -cf – /root/scripts | 7za a -mx3 -si file.7z |
7Zip extract archive created with the above command
1 |
7za x -so file.7z | tar xf - |
7Zip extract
1 |
7za x file.7z |
7Zip create fast compression, multivolume 1GB archive on different disk
1 |
7za a -mx1 -r -v1g "/...destination.../blah.7z" Blah |
Zip create fast compression, multivolume 1GB archive on different disk
1 |
zip -1 -r -v -s 1000m "/...destination.../blah.zip Blah |