CentOS 下安装7-Zip 以及常用的解压命令

来源:互联网 发布:mysql union 效率 编辑:程序博客网 时间:2024/06/05 05:17

在SHH或者终端下输入:yum –y install p7zip(如果提示找不到资源,则要自己下载编译安装,命令如:)

wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2tar -xjvf p7zip_4.65_src_all.tar.bz2cd p7zip_4.65make && make install

看到如下信息就说明你安装成功了:

./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip- installing /usr/local/bin/7za- installing /usr/local/man/man1/7z.1- installing /usr/local/man/man1/7za.1- installing /usr/local/man/man1/7zr.1- installing /usr/local/share/doc/p7zip/README- installing /usr/local/share/doc/p7zip/ChangeLog- installing HTML help in /usr/local/share/doc/p7zip/DOCS

这时如果发现乱码,请执行命令export LANG=zh_CN.GBK

常用命令:

7za e ishagua.7z 解压到当前目录下,不保留原来的目录结构

7za x ishagua.7z 解压到当前目录下,但保留原来的目录结构

1 0