![]() ![]() 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 home/MyImages/Sara-Khan-and-model-Priyanka-Shah.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. ![]() bz2 extraction.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. TarTool 2.0 Beta supports bzip2 files such as tar.bz2 and. Its hosted on codeplex tartool, complete with the source code. tar.bz2 file 7-Zip will automatically start.Ī simple windows command line tool (no install, just unzip) Instead of using 7-Zip on the command line, you can use the file manager and click on a. Type 7z x filename.tar at the command prompt (where filename.tar is the name of the tar file).This results in a tar file called filename.tar If the tar file is compressed, type 7z x at the command prompt (where is the name of the compressed tar file).Open a command prompt, and cd to the directory.Move the tar file to the directory you wish to unpack into (usually the tar file will put everything into a directory inside this directory).Add the directory you installed 7-Zip into to your path (Start -> Control Panel -> System -> Advanced -> Environment Variables).If you do not want to use 7-Zip as a command line tool, skip the next steps. 7-Zip can also be used to unpack many other formats and to create tar files (amongst others). Try tar -help or see the tar man page for more information.Īnother option is to install 7-Zip, which has a nice graphical user interface. If you have MinGW/MSYS or Cygwin installed, you can use the tar command to unpack such files: There are several ways to unpack these files. tar extension they can also be compressed, the extension is. Source code is often packed for download as a TAR (Tape ARchive) file, that is a standard format in the Unix/Linux world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |