linux unrar decompress to the specified folder

The syntax format is as follows:

unrar e -r [rar文件] [解压到的文件夹]

Among them, -e means decompression, -r means recursive processing, [rar file] is the RAR file to be decompressed, and [folder to extract to] is the specified folder.

For example, to extract the test.rar file to the /home/user/data folder, the command is as follows:

unrar e -r test.rar /home/user/data

Note: If you don't have unrar installed you need to install unrar first.

In Ubuntu, it can be installed with the following command:

sudo apt install unrar

In CentOS, it can be installed with the following command:

yum install unrar

In Fedora, it can be installed with the following command:

dnf install unrar

Guess you like

Origin blog.csdn.net/ZauberC/article/details/130627726