如何查看perl版本的版本信息

【CentOS 7.1】查看版本信息
[root@localhost~]#cat/etc/os-releaseNAME=CentOSLinuxVERSION=7(Core)[root@localhost~]#cat/etc/redhat-releaseCentOSLinuxrelease7.1.1503(Core)[root@local
[root@localhost ~]# cat /etc/os-release&NAME="CentOS Linux"VERSION="7 (Core)"[root@localhost ~]# cat /etc/redhat-release&CentOS Linux release 7.1.1503 (Core)&[root@localhost ~]#&[root@localhost ~]# rpm -q centos-releasecentos-release-7-1.1503.el7.centos.2.8.x86_64[root@localhost ~]#&[root@localhost ~]# uname -aLinux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC
x86_64 x86_64 GNU/Linux[root@localhost ~]#&[root@localhost ~]# cat /proc/versionLinux version 3.10.0-229.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2
(Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015[root@localhost ~]#[root@localhost ~]# cat /etc/issue\SKernel \r on an \m[root@localhost ~]#&[root@localhost ~]# file /bin/ls/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0xec333a104ee3d0ca6dda16c610a210f3, stripped[root@localhost ~]#&// LSB --- Linux Standard Base#yum&install&redhat-lsb[root@localhost yum.repos.d]# lsb_release -aLSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributor ID:CentOSDescription:CentOS Linux release 7.1.1503 (Core)&Release:7.1.1503Codename:Core[root@localhost yum.repos.d]#&,
你最喜欢的本帖子已过去太久远了,不再提供回复功能。请教怎么用Shell 脚本来判断红帽的版本 - Perl/Python当前位置:& &&&请教怎么用Shell 脚本来判断红帽的版本请教怎么用Shell 脚本来判断红帽的版本&&网友分享于:&&浏览:41次请问如何用Shell 脚本来判断红帽的版本?通过命令cat /etc/redhat-release得到版本信息:Red Hat Enterprise Linux AS release 4 (Nahant Update 3)我想请教下,上面这个串在不同的Redhat版本上是否有着同样的格式?是否可以拿来作为判断Redhat版本的依据?比如我想通过上面这个字符串判断它的版本是否大于等于5谢谢了!------解决方案--------------------
1.cat /etc/redhat-releaseorrpm -q redhat-release2.for all linux$ lsb_release -a
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有

我要回帖

更多关于 linux查看perl版本 的文章

 

随机推荐