下载相关包:
sudo apt-get install -f # 如果直接 install unrar 出错的话
sudo apt-get install unrar
相关解压命令:
man unrar
e Extract files to current directory.
l List archive content.
p Print file to stdout.
t Test archive files.
v Verbosely list archive.
x Extract files with full path.
注意参数 e
和参数 x
的区别:
e
:将所有的文件提取到当前目录;x
:保留压缩文件的完整路径信息;
转载自:https://blog.csdn.net/lanchunhui/article/details/51459681