Article Title: compress the "fun" document in Ubuntu (image ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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, for example, baobab.rar, to open the file (). You can also right-click the compressed file and choose the shortcut menu in the pop-up window, select "Open with Archive Manager" (Open with Archive Manager) 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 compressing the cpp folder as an example. To create a RAR compressed file, right-click the file or folder icon and choose, select "create archive file". The "create archive file" dialog box () is displayed. In the compressed file name compression type list, select "rar, it is compressed in RAR 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.
[1] [2] Next page