
7z文件类型属于一个压缩文件类型,在linux要通过命令可以将其解压出来,下面由我为大家整理了linux下解压7z文件命令的相关知识,希望对大家有所帮助。
一、linux解压7z文件命令详解
解压缩7z文件
7za x phpMyAdmin-3.3.8.1-all-languages.7z -r -o./
参数含义:
x 代表解压缩文件,并且是按原始目录树解压(还有个参数 e 也是解压缩文件,但其会将所有文件都解压到根下,而不是自己原有的文件夹下)
phpMyAdmin-3.3.8.1-all-languages.7z 是压缩文件,这里我用phpadmin做测试。这里默认使用当前目录下的phpMyAdmin-3.3.8.1-all-languages.7z
-r 表示递归解压缩所有的子文件夹
-o 是指定解压到的目录,-o后是没有空格的,直接接目录。这一点需要注意。
二、补充:linux压缩7z文件/文件夹命令
7za a -t7z -r Mytest.7z /opt/phpMyAdmin-3.3.8.1-all-languages/*
参数含义:
a 代表添加文件/文件夹到压缩包
-t 是指定压缩类型,这里定为7z,可不指定,因为7za默认压缩类型就是7z。
-r 表示递归所有的子文件夹
Mytest.7z 是压缩好后的压缩包名
/opt/phpMyAdmin-3.3.8.1-all-languages/*:是压缩目标。
注意:7za不仅仅支持.7z压缩格式,还支持.tar.bz2等压缩类型的。如上所述,用-t指定即可。
[root@ server]# javac -version-bash: /server/jdk1.7/bin/javac: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录解决:找到系统光盘里的rpm 包,安装下面 glibc包 和nss包:(可能有一些不用也行,但还是把下面的包都装了)glib2-2.22.5-5.el6.i686.rpmglib2-2.22.5-5.el6.x86_64.rpmglib2-devel-2.22.5-5.el6.i686.rpmglib2-devel-2.22.5-5.el6.x86_64.rpmglibc-2.12-1.7.el6.i686.rpmglibc-2.12-1.7.el6.x86_64.rpmglibc-common-2.12-1.7.el6.x86_64.rpmglibc-devel-2.12-1.7.el6.i686.rpmglibc-devel-2.12-1.7.el6.x86_64.rpmglibc-headers-2.12-1.7.el6.x86_64.rpmglibc-utils-2.12-1.7.el6.x86_64.rpmglibmm24-2.22.1-1.el6.x86_64.rpmnss-softokn-freebl-3.12.7-1.1.el6.i686.rpmnss-softokn-freebl-3.12.7-1.1.el6.x86_64.rpm[root@ ld-linux.so.2]# rpm -ivh * --force --nodeps再重新测试,成功!本篇文章来源于 Linux公社网站() 原文链接:/Linux/2012-08/68889.htm在64系统里执行32位程序报错: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory# yum -y install glibc-common glibc
# yum -y install glibc.i686
# yum info glibc.i686
# yum list installed | grep glib
# rpm -ql glibc.i686 | grep linux
# rpm -ql glibc | grep linux
# rpm -qf /lib/ld-linux.so.2
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
https://stackoverflow.com/questions/14030306/lib-ld-linux-so-2-bad-elf-interpreter-no-such-file-or-directory
Linux 版本中 i386/i686/x86-64/pcc 等架构的区别
https://www.jianshu.com/writer#/notebooks/27194001/notes/47794720
Windows Linux AIX下查看CPU位数和 *** 作系统位数、rpm包名
https://desert3.iteye.com/blog/1666404
What is the difference between i686 and x86_64 packages?
https://unix.stackexchange.com/questions/158244/what-is-the-difference-between-i686-and-x86-64-packages
What is the difference between i386,i686 and x86_64?
https://superuser.com/questions/74351/what-is-the-difference-between-x86-64-and-i386
https://superuser.com/questions/238112/what-is-the-difference-between-i686-and-x86-64
What is the difference between i386, i486, i586, i686, i786?
https://myonlineusb.wordpress.com/2011/06/08/what-is-the-difference-between-i386-i486-i586-i686-i786
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)