.tar
解壓:tar xvf FileName.tar
壓缩:tar cvf FileName.tar DirName
(注:tar是包裹(把多個檔案合成一個),不是壓缩!)
---------------------------------------------
.gz
解壓1:gunzip FileName.gz
解壓2:gzip -d FileName.gz
壓缩:gzip FileName
.tar.gz
解壓:tar zxvf FileName.tar.gz
壓缩:tar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
解壓1:bzip2 -d FileName.bz2
解壓2:bunzip2 FileName.bz2
壓缩: bzip2 -z FileName
.tar.bz2
解壓:tar jxvf FileName.tar.bz2
壓缩:tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
解壓1:bzip2 -d FileName.bz
解壓2:bunzip2 FileName.bz
壓缩:未知
.tar.bz
解壓:tar jxvf FileName.tar.bz
壓缩:未知
---------------------------------------------
.Z
解壓:uncompress FileName.Z
壓缩:compress FileName
.tar.Z
解壓:tar Zxvf FileName.tar.Z
壓缩:tar Zcvf FileName.tar.Z DirName
---------------------------------------------
.tgz
解壓:tar zxvf FileName.tgz
壓缩:未知
.tar.tgz
解壓:tar mysFileName.tar.tgz
壓缩:tar zcvf FileName.tar.tgz FileName
---------------------------------------------
.zip
解壓:unzip FileName.zip
壓缩:zip FileName.zip DirName
---------------------------------------------
.rar
解壓:rar a FileName.rar
壓缩:rar e FileName.rar
rar請到:http://www.rarsoft.com/download.htm 下載!
解壓後請将rar_static拷貝到/usr/bin目錄(其他由$PATH環境變數指定的目錄也可以):
[root@www2 tmp]# cp rar_static /usr/bin/rar
---------------------------------------------
.lha
解壓:lha -e FileName.lha
壓缩:lha -a FileName.lha FileName
lha請到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下載!
解壓後請将lha拷贝到/usr/bin目錄(其他由$PATH環境變數指定的目錄也可以):
[root@www2 tmp]# cp lha /usr/bin/
---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
解壓:sEx x FileName.*
壓缩:sEx a FileName.* FileName
sEx只是調用相關程序,本身並無壓缩、解壓功能,請注意!\r
sEx請到:http://sourceforge.net/projects/sex下載!
解壓后請将sEx拷贝到/usr/bin目錄(其他由$PATH環境變數指定的目錄也可以):
[root@www2 tmp]# cp sEx /usr/bin/
2013/08/09
2013/08/08
CentOS 6.x Proxy Server (Squid)
yum install squid
vi /etc/squid/squid.conf
##
cache_dir ufs /var/spool/squid 2000 16 256
##2G
vi /etc/squid/squid.conf
##
cache_dir ufs /var/spool/squid 2000 16 256
##2G
yum
Error: pkgKey doesn't exist in repo base (centos5.x)
yum clean all ; yum clean metadata ; yum -y update
###
The program package-cleanup is found in the yum-utils package.
yum install yum-utils
yum-complete-transaction --cleanup-only
package-cleanup --dupes ; package-cleanup --problems
###Proxy
vi /etc/yum.conf
yum clean all ; yum clean metadata ; yum -y update
###
The program package-cleanup is found in the yum-utils package.
yum install yum-utils
yum-complete-transaction --cleanup-only
package-cleanup --dupes ; package-cleanup --problems
###Proxy
vi /etc/yum.conf
proxy=http:
//proxy_ip:port
http://wiki.debian.org.hk/w/Manage_software_with_YUM
Subscribe to:
Posts (Atom)