現(xiàn)在常用的壓縮文件格式是rar格式,使用頻率甚至超過了zip格式,WinRAR可以壓縮和解壓rar文件。根據(jù)Google趨勢的統(tǒng)計,winrar與winzip的全球平均訪問量是1.00比0.43(點此看趨勢記錄),而中國范圍的訪問量更是1.00比0.14(點此看趨勢記錄)。而Linux一般情況下是不能解壓rar文件的,有一種變通的方法,就是先用WinRAR將rar格式的壓縮包轉(zhuǎn)換成zip包,然后上傳至Linux使用unzip解壓。如果安裝了rarlinux,就使得在Linux下直接解壓rar文件成為可能,要注意的是該軟件的某個版本可能并不適用于所有Linux版本?梢缘絎inRAR官方網(wǎng)站去下載rarlinux,當(dāng)前版本是3.9.3。本文后面也提供了三個版本的rarlinux,一個是3.0,一個是3.6.0,一個是3.9.3。linux命令經(jīng)過我的測試,3.6.0版本可以用于RHEL3.X版本,但3.9.3不行,只能用于更高版本的Linux,而3.0版本可以用于紅帽子7.3。而根據(jù)rarlinux安裝包中的technote.txt中所說“THE ARCHIVE FORMAT DESCRIBED BELOW IS ONLY VALID FOR VERSIONS SINCE 1.50”,其實只要rarlinux版本高于1.50就可解壓絕大部分rar文件。因此,如果要在Linux下使用rar,可以試一下本文后面附上的3.0版。
rarlinux的安裝很簡單,只需要解壓就可以了。為了使用起來方便,可以將解壓后的目錄添加到PATH中,方便使用。
首先將rarlinux-3.0.tar.gz上傳到Linux的某個目錄。
[root@localhost setup]# ls -l rarlinux-3.0.tar.gz
-rw-r--r-- 1 root root 502784 10月 19 09:45 rarlinux-3.0.tar.gz
[root@localhost setup]# tar -C /opt -zxf rarlinux-3.0.tar.gz
[root@localhost setup]# PATH=/opt/rar:$PATH
使用-?參數(shù)可以查看幫助信息,x參數(shù)用于解壓文件,t參數(shù)用于測試是否損壞,l參數(shù)用于列出文件。
unrar -? <== 獲取幫助
unrar x <rar-file> <== 解壓文件
unrar t <rar-file> <== 測試文件
unrar l <rar-file> <== 列出文件
下面是完整的使用方式,太復(fù)雜了,上面的幾種用法基本上就夠了。
[root@localhost setup]# unrar -?
command line:"c:\program files\common files\aaa.exe"。
=5}或${5ne5}false<或lt小于${3<5}或${3lt5}true>或gt大于${3>5}或${3gt5}false<=或le小于等于${3<=5}或${3le5}true>=或ge大于等于${3>=5}或${3ge5}false 注意: 在使用el關(guān)系運算符時,不能寫成: ${param.password1}= =${param.password2} 或者 ${${param.password1}= =${param.password2}} 而應(yīng)該寫成 ${param.password1= =param.password2}接下來再詳細說明el關(guān)系運算符的規(guī)則:(1)a{<,>,<=,>=,lt,gt,le,ge}bl 假若a== b,運算符為<=,le時,回傳true,否則回傳falsel 假若a為null或b為null時,回傳falsel 假若a或b為bigdecimal時,將另一個轉(zhuǎn)為bigdecimal,然后回傳a.compareto(b)的值。
<.別是一般滋味在心頭------李煜<<.<<>,不及汪倫送我情------李白<,動如參與商------唐.韋應(yīng)物<,衣帶日已緩------漢,雨雪霏霏------<.杜甫<.賀知章<.剪不斷,流水落花春去也。
[簡介]: 本發(fā)明提供了一種高爐入爐品位與高爐燃料消耗之間定量關(guān)系的測定方法,包括如下步驟:首先在剔除爐況波動因素情況下統(tǒng)計出高爐按照基準(zhǔn)入爐品位tfe<>0<>在一個生產(chǎn)周期的高爐燃料消耗量f<>0<>。
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files to current directory
l[t] List archive [technical]
p Print file to stdout
t Test archive files
v[t] Verbosely list archive [technical]
x Extract files with full path
<Switches>
- Stop switches scanning
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
ep Exclude paths from names
f Freshen files
idp Disable percentage display
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
o+ Overwrite existing files
o- Do not overwrite existing files
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
u Update files
v Create volumes with size autodetection or list all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
[root@localhost setup]#
假定你已經(jīng)安裝前面所述的安裝方式操作過了。首先把一個rar文件上傳到某個目錄。比如把add2cvs.rar上傳到/root/test/目錄中。
[root@localhost test]# ls -l
total 1
2015-10-19 11:20:02。
03-19 11:20 東方財富網(wǎng)。
【充值積分(11.19-11.20)】。
17 -rw-r--r-- 1 root root 13 5月 12 19:11 test.txt。
[root@localhost test]# unrar t add2cvs.rar
Testing archive add2cvs.rar
Testing add2cvs2.sh OK
Testing add2cvs.sh OK
Testing add2cvs0.sh OK
Testing add2cvs1.sh OK
All OK
[root@localhost test]# unrar l add2cvs.rar
Archive add2cvs.rar
6th single - begin 2006/6/21 begin high time begin(アカペラver.) begin(less vocal) high time(less vocal)。
position 指定參數(shù)序號,value 為賦給參數(shù)的值,temporaltype 取 temporaltype 的枚舉常量,包括 date、time 及 timestamp 三個,,用于將 java 的 date 型值臨時轉(zhuǎn)換為數(shù)據(jù)庫支持的日期時間類型(java.sql.date、java.sql.time及java.sql.timestamp)。
available crossword sizes are between 3-10 letter words based on the device size. time required for the creation takes just some seconds independent of the size selected.。
-------------------------------------------------------------------------------
add2cvs2.sh 302 192 63% 22-10-10 11:32 .....A C7EA31AB m3b 2.9
add2cvs.sh 314 204 64% 22-10-10 11:30 .....A 4F875213 m3b 2.9
add2cvs0.sh 236 158 66% 22-10-10 11:32 .....A 0441BC49 m3b 2.9
add2cvs1.sh 281 184 65% 22-10-10 11:32 .....A 13C47824 m3b 2.9
-------------------------------------------------------------------------------
4 1133 738 65%
[root@localhost test]# unrar x add2cvs.rar
Extracting from add2cvs.rar
Extracting add2cvs2.sh OK
Extracting add2cvs.sh OK
Extracting add2cvs0.sh OK
Extracting add2cvs1.sh OK
All OK
[root@localhost test]# ls -l
total 5
-rw-r--r-- 1 root root 236 10月 22 2010 add2cvs0.sh
-rw-r--r-- 1 root root 281 10月 22 2010 add2cvs1.sh
-rw-r--r-- 1 root root 302 10月 22 2010 add2cvs2.sh
2015-10-19 11:20:02。
03-19 11:20 東方財富網(wǎng)。
【充值積分(11.19-11.20)】。
17 -rw-r--r-- 1 root root 13 5月 12 19:11 test.txt。
-rw-r--r-- 1 root root 314 10月 22 2010 add2cvs.sh
[root@localhost test]#
示例二 rarlinux版本3.9.3在RHEL5.5下的安裝情況
rarlinux版本3.9.3的rar_static可以用于RHEL 5.5,但rar和unrar缺少相關(guān)的so文件,因為libc版本要求高。linux命令
[root@rhel55 rar]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Release: 5.5
Codename: Tikanga
[root@rhel55 tools]# ls -l rarlinux.tar.gz
-rw-r--r-- 1 root root 833828 10-23 15:52 rarlinux.tar.gz
[root@rhel55 tools]# tar zxf rarlinux.tar.gz
[root@rhel55 tools]# cd rar
[root@rhel55 rar]# ls
default.sfx makefile rar rar_static readme.txt unrar
license.txt order.htm rarfiles.lst rar.txt technote.txt whatsnew.txt
[root@rhel55 rar]# ./rar
./rar: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./rar)
[root@rhel55 rar]# ./unrar
./unrar: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./unrar)
[root@rhel55 rar]# ./rar_static
Shareware version Type RAR -? for help
Usage: rar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
省略輸出
[root@rhel55 rar]#
示例三 rarlinux版本3.9.3在RHEL3.4下的安裝情況
rarlinux版本3.9.3在RHEL3.4下出現(xiàn)段錯誤,根本沒法用。
[root@web186 setup]# lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 3 (Taroon Update 4)
Release: 3
Codename: TaroonUpdate4
[root@web186 setup]# ls rarlinux.tar.gz -l
-rw-r--r-- 1 root root 833828 10月 23 15:59 rarlinux.tar.gz
我在fedora9上安裝了git,其中g(shù)it壓縮包在root用戶本機根目錄下的tar目錄,解壓于tar目錄,[root@localhost tar]# tar -vxzf git-1.7.8.tar.gz,然后[root@localhost tar]# cd git-1.7.8。
2、52samsung、gfan等主要論壇上關(guān)于root 4.3的貼子,我?guī)缀跻踩吭囘^,均無效,包括刷n719-cwm-recovery-6.0.4.5-cn(1212).tar,n719-root-cwm-v1.86.tar.md5后更新supersu,線刷n7100-n7102--touch-recovery6.0.3.2.tar后再卡刷2027032223kwhosl3h35k5.zip(supersu1.86),刷cwm-recovery-6.0.4.5.tar(xiaolu)+supersu1.8+busybox2.1等等。
其它文件:zip、7z、deb、rar、tar、tar.gz、tar.bz2、tar.z、tgz、tbz2、gz、bz2、z、xml。
解壓:tar -zxv -f /root/filename.tar.gz etc/shadow。
[root@web186 setup]# cd rar
[root@web186 rar]# ls
default.sfx makefile rar rar_static readme.txt unrar
運用文杰2002自帶的文杰文件格式轉(zhuǎn)換器,可將文杰2002中打開的各種文檔格式,可轉(zhuǎn)換為文杰文檔(*.hwp)、文檔模板(*.hwt)、hwpml2.1文檔(*.hml)、文杰2001~3.0文檔、 html文件(*.htm)、編碼文本文件(*.txt)、unicode文本文件(*.txt)、幻燈演示文件文件(*.htm)、 ms word文檔(*.doc)等。
大多數(shù)勒索病毒都使用純文字檔(.txt)或網(wǎng)頁檔案(.htm)通知使用者,他們的系統(tǒng)已經(jīng)遭勒索病毒入侵。
doc=notes/windows/license/memory.htm。
下載了我上傳的破解文件夾后,在rose_2007_crack的crack文件夾里面有兩個文件,install.txt是破解方法,license.upd是破解文件。
[root@web186 rar]# ./rar
./rar: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./rar)
./rar: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by ./rar)
./rar: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by ./rar)
[root@web186 rar]# ./unrar
our version of mii is 12.2.4 build(92) and it is running on a linux server.。
json-lib-2.4-jdk15和json-lib-2.4-jdk13的區(qū)別。
- it still doesn't feel as good as 2.4. it's not a disaster like some。
5.2.4. virtual reality market, by application。
./unrar: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by ./unrar)
./unrar: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by ./unrar)
[root@web186 rar]# ./rar_static
FATAL: kernel too old
段錯誤 (core dumped)
[root@web186 rar]#
博主建議:如果您使用的rarlinux版本報如上的錯誤信息,請下載本文附件rarlinux-3.0.tar.gz嘗試一下。
示例四 rarlinux版本3.6.0在RHEL3.4下的安裝情況
rarlinux版本3.6.0在RHEL3.4下可以正常使用。
[root@web186 setup]# lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 3 (Taroon Update 4)
Release: 3
Codename: TaroonUpdate4
[root@nginx src]# tar -xvf openssl-1.0.2g.tar.gz。
[root@nginx src]# tar -xvf zlib-1.2.8.tar.gz。
[root@nginx src]# tar -xvf nginx-1.9.12.tar.gz。
[root@server share]# tar zcvf commands.tar.gz .commands[root@server share]# rm -rf commands.tar.gz。
-rw-r--r-- 1 root root 752997 10月 23 16:04 rarlinux-3.6.0.tar.gz
我在fedora9上安裝了git,其中g(shù)it壓縮包在root用戶本機根目錄下的tar目錄,解壓于tar目錄,[root@localhost tar]# tar -vxzf git-1.7.8.tar.gz,然后[root@localhost tar]# cd git-1.7.8。
2、52samsung、gfan等主要論壇上關(guān)于root 4.3的貼子,我?guī)缀跻踩吭囘^,均無效,包括刷n719-cwm-recovery-6.0.4.5-cn(1212).tar,n719-root-cwm-v1.86.tar.md5后更新supersu,線刷n7100-n7102--touch-recovery6.0.3.2.tar后再卡刷2027032223kwhosl3h35k5.zip(supersu1.86),刷cwm-recovery-6.0.4.5.tar(xiaolu)+supersu1.8+busybox2.1等等。
其它文件:zip、7z、deb、rar、tar、tar.gz、tar.bz2、tar.z、tgz、tbz2、gz、bz2、z、xml。
解壓:tar -zxv -f /root/filename.tar.gz etc/shadow。
[root@web186 setup]# cd rar
[root@web186 rar]# ls
* [bug #18619] default not saved with trailing white-space on "default saved" line in menu.lst, ryan stutsman, 2007/06/21。
1. winrar and command line rar use rar 5.0 archive format by default.you can change it to rar 4.x compatible format with “rar4” option in archiving dialog or -ma4 command line switch.。
file_id.diz Makefile rar rar_static readme.txt unrar
[root@web186 rar]# ./rar
Shareware version Type RAR -? for help
省略輸出
[root@web186 rar]#
[root@web186 rar]# ./unrar
省略輸出
[root@web186 rar]#
示例五 rarlinux版本3.6.0在RH7.3下的安裝情況
三星galaxyj3是安卓系統(tǒng)5.1版本使用(安卓軟件園root精靈)可以支持一鍵root全新獲取。
我們目前最新的609d是1.47.1401.2,因為htc手機不能降級所以大家注意所有比這個1.47.1401.2低的版本都可以按我要求做。
另外,有一些文件格式是通用格式,可以在兩個平臺間自由轉(zhuǎn)如 .tif、.jpg、.ps等格式,它們沒有兩平臺使用軟件版本號相同的要求,可以自由使用。
這個普通人,他不會因為校規(guī)要求不能留長發(fā)而憂郁,不會因為得不到愛而去寄情網(wǎng)絡(luò),不會因為別人說打架很酷而去使用暴力。
[root@localhost setup]# cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)
[root@localhost setup]# ls -l rarlinux-3.6.0.tar.gz
[root@edwcube3 ~]# [root@edwcube3 ~]# useradd -g web weblogic //添加用戶,并用-g參數(shù)來制定 web用戶組[root@edwcube3 ~][root@edwcube3 ~]# passwd weblogic //passwd命令修改密碼changing password for user weblogic.new unix password: retype new unix password: passwd: all authentication tokens updated successfully.[root@edwcube3 ~]# [root@edwcube3 ~]# 3.如果沒有安裝jdk的話,還需要安裝jdk第一步:從官網(wǎng)下載壓縮包jdk-7-linux-i586.tar.gz[root@odstest jdk1.7]$ tar -zxv -f jdk-7u55-linux-i586.tar.gz -c ./jdk1.7第三步.移動文件/usr/local注:具體位置可以根據(jù)用戶習(xí)慣自己移動[root@odstest /]# mv ./jdk1.7 /usr/local/jdk1.7第四步.配置環(huán)境變量環(huán)境分量分為整個系統(tǒng)的,已經(jīng)只針對當(dāng)前用戶設(shè)置的,我們這邊只對weblogic用戶設(shè)置~/.bashrc :僅對當(dāng)前用戶生效在~/.bashrc最后添加以下部分java_home=/usr/local/jdk1.7export jre_home=/usr/local/jdk1.7/jreexport classpath=.:$java_home/lib:$jre_home/lib:$classpathexport path=$java_home/bin:$jre_home/bin:$path保存,執(zhí)行 source~/.bashrc。
吟平 發(fā)表于 2014-12-19 08:32 。
清水鋪鎮(zhèn)學(xué)前教育三年行動計劃工作總結(jié)2017-07-04 19:08:32 | #1樓。
作者:謝文杰發(fā)布時間:2012-03-19 08:32:46。
[root@localhost setup]# tar zxf rarlinux-3.6.0.tar.gz
[root@localhost setup]# cd rar
[root@localhost rar]# ls
default.sfx license.txt order.htm rarfiles.lst rar.txt technote.txt whatsnew.txt
file_id.diz Makefile rar rar_static readme.txt unrar
[root@localhost rar]# ./rar
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: no such file or directory。
configtool: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: no such file or directoryconfigtool: error while loading shared libraries: libpng.so.2: cannot open shared object file: no such file or directoryconfigtool: error while loading shared libraries: libtiff.so.3: cannot open shared object file: no such file or directory。
./configtool: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: no such file or directory。
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: no such file or directory。
[root@localhost rar]# ./unrar
./unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@localhost rar]# ./rar_static
Shareware version Type RAR -? for help
edit : $(objects)cc -o edit $(objects)main.o : main.c defs.hcc -c main.ckbd.o : kbd.c defs.h command.hcc -c kbd.ccommand.o : command.c defs.h command.hcc -c command.cdisplay.o : display.c defs.h buffer.hcc -c display.cinsert.o : insert.c defs.h buffer.hcc -c insert.csearch.o : search.c defs.h buffer.hcc -c search.cfiles.o : files.c defs.h buffer.h command.hcc -c files.cutils.o : utils.c defs.hcc -c utils.cclean :rm edit $(objects)。
if you want to compile the os/2 version, you need the emx compiler. use theunix source archive, runtime files and the extra archive. after unpacking theruntime archive, move all the files and directories in the "runtime"directory one level up.。
usage notes:command lines and files。
[簡介]: 本發(fā)明提供了一種高爐入爐品位與高爐燃料消耗之間定量關(guān)系的測定方法,包括如下步驟:首先在剔除爐況波動因素情況下統(tǒng)計出高爐按照基準(zhǔn)入爐品位tfe<>0<>在一個生產(chǎn)周期的高爐燃料消耗量f<>0<>。
<@listfiles...> <path_to_extract\>
省略輸出
[root@localhost rar]#
示例六 rarlinux版本3.0在RH7.3下的安裝情況
rarlinux版本3.0可以用于紅帽子7.3。
[root@localhost setup]# ls -l rarlinux-3.0.tar.gz
-rw-r--r-- 1 root root 502784 10月 19 09:45 rarlinux-3.0.tar.gz
[root@localhost setup]# tar zxf rarlinux-3.0.tar.gz
[root@localhost setup]# cd rar
[root@localhost rar]# ls
命令git checkout – readme.txt意思就是,把readme.txt文件在工作區(qū)的修改全部撤銷,這里有兩種情況:。
假設(shè)測試人員期望匹配web頁面的如下部分:name = "file" value = "readme.txt">并提取file和readme.txt。
2. 命令git checkout -- readme.txt意思就是,把readme.txt文件在工作區(qū)的修改全部撤銷,這里有兩種情況:。
readme.txt可以在/system/core/init/readme.txt找到。
名叫file_id.diz的文件記錄了該軟件包的全名。
...................................... file_id.diz ......1088 06.06.2001 。
│││file_id.diz。
那么這些文件有什么用,現(xiàn)在已經(jīng)基本讓位于nfo文件,保留它完全是出于一種習(xí)慣,一般還有一個名叫file_id.diz的文件記錄了該軟件包的全名。
[root@localhost rar]# ./rar
Shareware version Type RAR -? for help
省略輸出
[root@localhost rar]#
將安裝文件壓縮包rarlinux-x.y.tar.gz解壓之后,進入rar目錄,執(zhí)行make命令。執(zhí)行文件將會安裝到 /usr/local/bin 下。
[root@liunx0918 tmp]# cd rar
[root@liunx0918 rar]# ls
default.sfx license.txt order.txt rar_faq.txt rar_site.txt readme.txt rereg.txt unrar
file_id.diz Makefile rar rarfiles.lst rar.txt register.txt technote.txt whatsnew.txt
[root@liunx0918 rar]# cat Makefile
###################################################################
# Installing RAR executables, configuration files and SFX modules #
# to appropriate directories #
###################################################################
PREFIX=/usr/local
install:
cp rar unrar $(PREFIX)/bin
cp rarfiles.lst /etc
cp default.sfx $(PREFIX)/lib
[root@liunx0918 rar]# make
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib
[root@liunx0918 rar]#
1. 怎樣使用unrar將文件解壓到指定目錄?
【1】WinRAR官方站點 Welcome to RARLAB, home of WinRAR and RAR archivers
【2】愚人碼頭 Linux系統(tǒng)中rar、unrar命令安裝和使用詳解
【3】尛樣兒 Linux下使用unrar解壓RAR包
返回 我使用過的Linux命令系列總目錄