Packing with tar gzip, bzip2 and zip

Looking back through my block i found my post about extracting archives. Now it’s time to continue here with the How to put files into archives. “tar.gz” with tar Here is some common way to create your archives. #Creates simple targetfile.tar without compression. Will include everything in the current dir "." tar cvf targetfile.tar ./* #Zip everything beneath current dir to targetfile.tar.gz tar cvzf targetfile.tar.gz ./* #Bzip2 everything beneath current dir to targetfile....

December 31, 2011 · 3 min · Alexander Holbreich

Unpacking archives with tar, gzip, bzip2, z

Sometimes there is a need to extract some files on the Linux console. Below you’ll find a list of the most common methods for that. tar Tar archives are the most common way of distributing bundles of files under Linux or UNIX. The .tar file represents a bundle of files packaged with GNU tar program. To extract such files use: tar xf somearchive.tar tar xvf somearchive.tar Provide option f if you want to extract the content of files....

February 1, 2009 · 4 min · Alexander Holbreich