1、检查是否安装 rar
输入 xxxx$ rar 如果有以下输出即表明已经安装。
RAR 3.80 Copyright (c) 1993-2008 Alexander Roshal 16 Sep 2008
Shareware version Type RAR -? for help
Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
a Add files to archive
c Add archive comment
cf Add files comment
ch Change archive parameters
cw Write archive comment to file
d Delete files from archive
e Extract files to current directory
f Freshen files in archive
i[par]=<str> Find string in archives
k Lock archive
l[t,b] List archive [technical, bare]
m[f] Move to archive [files only]
p Print file to stdout
r Repair archive
rc Reconstruct missing volumes
rn Rename archived files
rr[N] Add data recovery record
........
2、未安装则按照一下命令安装
(1)下载:
mkdir -p /home/rar_tool/tools
cd /home/rar_tool/tools
wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz
(2)安装:
tar zxvf rarlinux-3.8.0.tar.gz
cd rar
sudo make
sudo make install
本文介绍了如何检查系统中是否已安装RAR,并提供了详细的步骤来安装RAR。此外,还列举了RAR的各种命令,如添加文件到归档、提取文件等。

508

被折叠的 条评论
为什么被折叠?



