![]() ![]() So, here we need to install RAR command-line utility to create archive files. ![]() It has no option for creating RAR files under Linux. The unrar command is used to extract, list, or test archive files only. The below command will perform a complete integrity check for each file and displays the status of the file. To test the integrity of an archive file, use option unrar t. Name Size Packed Ratio Date Time Attr CRC Meth Ver It will display the list of files with their sizes, date, time, and permissions. To list files inside an archive file use the unrar l option. # unrar x tecmint.rarĪll OK Step 3: How to List a RAR File in Linux It will extract according to their folder structure see below the output of the command. ![]() To open/extract a RAR file with its original directory structure, just issue the below command with the unrar x option. To open/extract a RAR file in a specific path or destination directory, just use the unrar e option, it will extract all the files in the specified destination directory. UNRAR 4.20 beta 3 freeware Copyright (c) 1993-2012 Alexander Roshal To open/extract a RAR file in the current working directory, just use the following command with the unrar e option. Step 2: How to Open/Extract a RAR File in Linux If your distribution does not offer unrar package, you need to download the latest unrar/rar file and install it using the following commands. tar -tvjf other popular Linux distributions, you can install it using your default package manager as shown. Use -t with -v (verbose) command line option to list archive file content only. You never need to extract a archive file to just view the file content. How to list tar.bz2 content without extract The above command will compress all the files available under /var/compressed file in current directory. You can also use -j to create a tar.bz2 archive file.įor example, to create a backup of your web server directory, execute: tar -cjf 2 /var/www/html The tar command uses -c to create a compressed tar archive file. Now all the files will be extracted under /opt directory. To extract files in a defend location, use -C option followed by the destination directory. The above command will extract tar.bz2 file content in current directory. ![]() So we can use -xjf options with the tar command to extract a. As this is a also tar compressed file, You also need to use -x command line option. You can use Linux tar command with option -j to extract bz2 file. Command to list the content of tar.bz2 without extracting it.In this tutorial, you will learn the followings: tar.bz2 extension and can be unpacked using the tar command with the -j option. The tar command is used to create an archive of multiple files or directories and the bzip2 compression algorithm is used to reduce the size of the archive. It is commonly used for distributing large files or groups of files as a single archive, which is smaller in size compared to the original files, making it easier to transfer and manage. A “tar.bz2” file is a compressed archive file created using the tar command in Unix/Linux and the bzip2 compression algorithm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |