![]() When extracting files, you must provide the exact name, including the path, as printed when option -list ( -t) is used.Įxtracting one or more directories from an archive is equivalent to extracting multiple files tar -xf dir1 dir2 ![]() For example, we want to extract foto201.jpgand foto202.jpg tar -xf foto201.jpg foto202.jpg To extract specific files from the tar.bz2 file, add a list of separated filenames. Use -directory ( -C) to extract archive files in a specific directory:įor example, to extract the contents of an archive to a directory /home/budi/files, you must type: tar -xf -C / home / budi / files Extract Specific Files from Tar.xz File File tar -xvf īy default, tar will extract the contents of the archive in the current working directory. This option tells tar to display the name of the file being extracted in the terminal. Windows users will need a tool called 7zip to extract the tar.xz file.įor more verbose output use options -v. ![]() To extract (unzip) the tar.bz2 file simply right-click the file you want to extract and select “Extract”. If you are a Desktop user and still afraid to use the terminal/command line, you can use your File Manager. The same command can be used to extract tar archives compressed with other algorithms, such as. The command tar automatically detects the compression type and extracts the archive. To extract the tar.xz file, Use the command tarwith options -extract ( -x) and specify the archive file name after the option -f: tar -xf Most Linux and macOS distributions come with the tar utility installed by default. In this tutorial, we will explain how to extract (or unzip). By convention, the name of a tar archive compressed with xz ends with. Xz is a popular algorithm for compressing files based on the LZMA algorithm. This command also supports various compression programs such as gzip, bzip2, lzip, lzma, lzop, xz and compress. Note: I have performed the above steps on RHEL 5.Today we learn in this tutorial how to extract (Unzip) Tar.xz Tar.gz File on Linux Command Line Command tarallows you to create and extract archives with tar format. ![]() Now use the command tar -xvf to extract the *.tar file Wkhtmltopdf]# tar -xvf Wkhtmltopdf]# ll Use the command unxz or xz –decompress to extract *.tar.xz file to *.tar Wkhtmltopdf]# unxz Wkhtmltopdf]# xz -decompress Wkhtmltopdf]# ll Here I have to extract the *.tar.xz file given below Wkhtmltopdf]# ll Install the xz-utils packageĬopy the RPMs related to xz-utils and install them rpm]# ll ![]() To extract a *.tar.xz file you need to install the xz-utils package and after that use the command unxz to extract the *.tar from *.tar.xz. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |