7/27/2023 0 Comments Untar linux tar.bz2![]() Tar creates an archive of one or several files. ![]() The "-j" option of the tar command allows you to directly bunzip2 and extract a ".tar.bz2" file. The command extracts the contents of a bzip2 compressed archive to the current directory. The files are uncompressed using the bunzip2 command. The "-j" option of the tar command allows you to do this directly. In this case we will use it to compress a ".tar" file. It compresses the specified files, giving them a ".bz2" extension. The bzip2 command is similar to the gzip command. To extract a tar.gz file from standard input (stdin), you can use the tar command with the -z option to specify that the input is in gzip format, and the. The "-z" option of the tar command allows you to directly ungzip and extract a ".tar.gz" file. The files are uncompressed using the gunzip command. The "-z" option of the tar command allows you to do this directly. tar. tar.xz extension indicates that you have used the xz command over the tar file for compression. In this case we will use it to compress a ".tar" file. For example, here, I untared a 2 file: tar -xjvf 2 How to untar. ![]() The gzip command compresses the specified files, giving them a ".gz" extension. The star command may not be installed by default, but you can install it with the following command. The examples will use the following files.Įxtracts assume the "/tmp/extract-dir" directory is empty. Please check the man pages for each command. Remember, the exams are hands-on, so it doesn't matter which method you use to achieve the result, so long as the end product is correct.Īll the commands in this article have many options in addition to the basic ones being used here. I am trying to untar a tar.bz2 by this tar -xvjf 2. Exclusive for LQ members, get up to 45 off per month. This article discusses the archiving tools available in Linux, with specific reference to the information needed for the RHCSA EX200 and RHCE EX300 certification exams. Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use. Home » Articles » Linux » Here Linux Archive Tools (tar, star, gzip, bzip2, zip, cpio)
0 Comments
Leave a Reply. |