Best compression using tar and 7z

By technese - Last updated: Sunday, September 7, 2014 - Save & Share - Leave a Comment

Compress using tar and 7z

$ tar cf - <source folder/file> | 7z a -si <Destination archive>.tar.7z

$ 7z x -so yourfile.tar.7z | tar xf - -C target_dir

Reference:
1. http://askubuntu.com/questions/300097/how-do-i-create-tar-7z-file-from-the-command-line

2. http://askubuntu.com/questions/341628/how-to-extract-tar-7z-files-from-command-line

Posted in General • • Top Of Page