

UNTAR A TAR GZ FILE ARCHIVE
List Content tar.bz2 Archive File in Linux Use the following command to list the content of the tar.gz file. List Content tar.gz Archive File in Linux rw-r-r- chregu/staff 15433 18:51:10 uploadprogress/uploadprogress.c rw-r-r- chregu/staff 3563 18:51:10 uploadprogress/php_uploadprogress.h rw-r-r- chregu/staff 1697 18:51:10 uploadprogress/examples/info.php rw-r-r- chregu/staff 1685 18:51:10 uploadprogress/examples/server.php rw-r-r- chregu/staff 7877 18:51:10 uploadprogress/examples/index.php The below command will list the content of the uploadprogress.tar file.

To list the contents of the tar archive file, just run the following command with option t ( list content). List Content of tar Archive File in Linux home/public_html/videos/flv/Minissha-Lamba.flv 7. home/public_html/videos/flv/Mileyphoto101203.flv home/public_html/videos/flv/Lakme-Fashion-Week.flv home/public_html/videos/flv/JustinAwardmovie101125.flv home/public_html/videos/flv/JenniferRobert101130.flv home/public_html/videos/flv/dollybackinbb4101125.flv home/public_html/videos/flv/BrookmuellerCIA101125.flv home/public_html/videos/flv/katrinabarbiedoll231110.flv The below example command will untar all the. To Uncompress the highly compressed tar.bz2 file, just use the following command. home/public_html/videos/thumbnails/Mileyphoto101203.jpg 6. home/public_html/videos/thumbnails/Lindsaydance101201.jpg home/public_html/videos/thumbnails/Minissha-Lamba.jpg home/public_html/videos/thumbnails/snagItNarration.jpg home/public_html/videos/thumbnails/ReesewitherspoonCIA101202.jpg home/public_html/videos/thumbnails/playbutton.png home/public_html/videos/thumbnails/onceuponatime101125.jpg home/public_html/videos/thumbnails/katrinabarbiedoll231110.jpg

home/public_html/videos/thumbnails/katdeepika231110.jpg If we would like to untar in different directories, just use option -C and the directory path, as shown in the above example. To Uncompress tar.gz archive file, just run the following command. home/public_html/videos/all_categories.php # Untar files in Current Directory # tar -xvf public_html-14-09-12.tar # Untar files in specified Directory # tar -xvf public_html-14-09-12.tar -C /home/public_html/videos/ If you want to untar in a different directory then use option as -C ( specified directory). For example, the below command will untar the file public_html-14-09-12.tar in the present working directory. To untar or extract a tar file, just issue the following command using option x ( extract). ( Note: tar.bz2 and tbz is similar to tb2). The following example command will create a 2 file for a directory /home/php. To create a highly compressed tar file we use the option j. The bz2 compression takes more time to compress and decompress files than gzip, which takes less time. The bz2 feature compresses and creates an archive file less than the size of the gzip. home/MyImages/yanaguptabaresf231110.jpg 3.

home/MyImages/ReesewitherspoonCIA101202.jpg home/MyImages/the-japanese-wife-press-conference.jpg home/MyImages/katrinabarbiedoll231110.jpg home/MyImages/RobertKristenviolent101201.jpg # tar cvzf MyImages-14-09-12.tgz /home/MyImages ( Note: tar.gz and tgz both are similar). For example, the below command will create a compressed file for the directory /home/MyImages. To create a compressed gzip archive file we use the option as z. f – File name type of the archive file.Let’s discuss each option used in the above command to create a tar archive file. home/tecmint/rpmforge-release-0.5.i386.rpm home/tecmint/phpmyadmin-2.11.11.noarch.rpm The below example command will create a tar archive file tecmint-14-09-12.tar for a directory /home/tecmint in the current working directory. The main purpose of this guide is to provide various tar command examples that might be helpful for you to understand and become an expert in tar archive manipulation.
