To extract tar files compressed by this algorithm (e.g., tar.bz, tar.bz2 or. tar -zxvf -C output/uncompress Extracting Bzip2 Compressed Filesīzip2 is another file compression program used by the tar command line utility. tgz we will have to use the -z switch as mentioned below. In this section we will be acquainted with how we can extract different compressed tar archives. Follow the example below: tar -xvf myarchive.tar -C output/untarġ directory, 6 files Extracting Compressed Tar ArchiveĪs we have mentioned before, the tar command can create and extract archive files using numerous compression algorithms such as xz, gzip, and bzip2. We can achieve that by using the -C tar switch to specify where you extract the. When you want to extract tar files to different directories you don’t have to change the directory using the cd command or by copying the tar archive to the desired directory then extract files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |