In office applications, we often encounter compressed files in various formats. In Windows, we can use third-party software such as WinRAR and WinZip to process these documents. In Ubuntu, with the help of the built-in commands or a variety of graphical tools, we can also easily process compressed files in various formats. Let's take a look. I. compression and decompression of ZIP and RAR files
In office applications, we often encounter compressed files in various formats. In Windows, we can use third-party software such as WinRAR and WinZip to process these documents. In Ubuntu, with the help of the built-in commands or a variety of graphical tools, we can also easily process compressed files in various formats. Let's take a look.
1. ZIP and RAR files are compressed and decompressed
I believe that ZIP and RAR compressed files can be seen everywhere on Windows platforms.
These two formats of compressed files. By default, the ZIP package is installed in Ubuntu. You can use the commands provided by the package to generate ZIP files or decompress files in this format. For processing RAR files, you need to use a software named RAR for Linux. The software is not installed in Ubuntu by default. We can download and install the software through the new software package manager. After installation, we can use it for compression and decompression.
Although ZIP or RAR for Linux provides practical commands for processing compressed files, the graphical operation interface is more user-friendly. In the integrated desktop environment of GNOME, we can easily compress and decompress these two formats of files using the graphical tool File Roller File package. This section describes how to process the .rar file.
In the nautilus(parrot snail bait File Manager, double-click an rargex file, such as linuxlinuxidc.rar, to open the file directly (, 2). You can also right-click the compressed file and choose the shortcut menu in the pop-up window, select the archive Manager option to open the compressed file.
After the compressed File is opened, there are three related command buttons on the toolbar of the File roeller package window, which correspond to the functions of extracting, adding files to the current package, and adding folders to the current package. After viewing the content of the compressed package, we can choose to decompress the entire package or part of the file or folder.
Take the Linuxidc.com folder as an example. To create a compressed file in RAR format, right-click the file or folder icon and choose the shortcut menu that appears, select "create archive file", which will pop up the "Create archive file" dialog box (, 4), in the compressed file name after the compression type list, select "rar" or "zip" to compress the data in RAR or zip format. After confirming the compressed file name, compression type, and target path, click "CREATE" to generate the compressed file.
In the File roler package, in addition to the compression and decompression functions described above, we can also verify the integrity, encryption, or decryption of RAR compressed files. For processing compressed files in ZIP format, refer to the processing process of files in RAR format.