rar的安装:
rpm -Uhv
yum install rar
rar的使用:
压缩
rar a 压缩成的文件.rar 文件或文件夹
[root@fast ~]# rar a 1.rar soft/
RAR 3.80 Copyright (c) 1993-2008 Alexander Roshal 16 Sep 2008
Shareware version Type RAR -? for help
Evaluation copy. Please register.
Creating archive 1.rar
Adding soft/mcrypt-2.6.8.tar.gz OK
Adding soft/libmcrypt-2.5.8.tar.gz OK
Adding soft/nginx-0.8.15.tar.gz OK
Adding soft/libiconv-1.13.tar.gz OK
Adding soft/pcre-7.9.tar.gz OK
Adding soft/mhash-0.9.9.9.tar.gz OK
Done
[root@fast ~]# rm -rf soft/*
[root@fast ~]# ls -al soft/
total 12
drwxr-xr-x 2 root root 4096 Oct 25 21:56 .
drwxr-x--- 5 root root 4096 Oct 25 21:52 ..
rar的解压
rar e 解压的文件.rar 解压的目录
[root@fast ~]# rar e 1.rar soft/
RAR 3.80 Copyright (c) 1993-2008 Alexander Roshal 16 Sep 2008
Shareware version Type RAR -? for help
Extracting from 1.rar
Extracting soft/mcrypt-2.6.8.tar.gz OK
Extracting soft/libmcrypt-2.5.8.tar.gz OK
Extracting soft/nginx-0.8.15.tar.gz OK
Extracting soft/libiconv-1.13.tar.gz OK
Extracting soft/pcre-7.9.tar.gz OK
Extracting soft/mhash-0.9.9.9.tar.gz OK
All OK
[root@fast ~]# ls -al soft/
total 9104
drwxr-xr-x 2 root root 4096 Oct 25 21:56 .
drwxr-x--- 5 root root 4096 Oct 25 21:52 ..
-rw-r--r-- 1 root root 4731530 Jul 8 00:31 libiconv-1.13.tar.gz
-rw-r--r-- 1 root root 1335178 Jul 8 00:35 libmcrypt-2.5.8.tar.gz
-rw-r--r-- 1 root root 471915 Jul 8 00:37 mcrypt-2.6.8.tar.gz
-rw-r--r-- 1 root root 931437 Jul 8 00:37 mhash-0.9.9.9.tar.gz
-rw-r--r-- 1 root root 605698 Sep 14 07:07 nginx-0.8.15.tar.gz
-rw-r--r-- 1 root root 1191330 Jul 8 00:38 pcre-7.9.tar.gz
阅读(1116) | 评论(0) | 转发(0) |