如何查看Linux 版本/内核(方法与实例)

来源:互联网 发布:创世兵魂刷枪软件 编辑:程序博客网 时间:2024/06/07 08:24

uname -a

more/proc/version

cat/etc/issue

 

Forexample:

Ubantu:

root@onyorch:~#cat /etc/issue

Ubuntu14.04.2 LTS \n \l

root@onyorch:~#more /proc/version

Linuxversion 3.13.0-46-generic (buildd@tipua) (gcc version 4.8.2 (Ubuntu4.8.2-19ubuntu1) ) #77-Ubuntu

SMP MonMar 2 18:23:39 UTC 2015

 

root@onyorch:~#uname -a

Linuxonyorch 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64x86_64 x86_64 GNU/Linux

 

 

CentOS:

 

[110-CTS-user1@recovery-vm~]$ uname -a

Linuxrecovery-vm 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014x86_64 x86_64 x86_64 GNU/Linux

[110-CTS-user1@recovery-vm~]$ more /proc/version

Linuxversion 2.6.32-431.23.3.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gccversion 4.4.7 2012031

3 (RedHat 4.4.7-4) (GCC) ) #1 SMP Thu Jul 31 17:20:51 UTC 2014

[110-CTS-user1@recovery-vm~]$ cat /etc/issue

CentOSrelease 6.5 (Final)

Kernel \ron an \m

 

Redhat:

<cts02-M0001:lss>/export/home/lss/logs/xlsRead/reqdir:

# uname-a

Linuxcts02-M0001 2.6.32-573.8.1.el6.x86_64 #1 SMP Fri Sep 25 19:24:22 EDT 2015x86_64 x86_64 x86_64 GNU/Linux

 

<cts02-M0001:lss>/export/home/lss/logs/xlsRead/reqdir:

# more/proc/version

Linuxversion 2.6.32-573.8.1.el6.x86_64 (mockbuild@x86-033.build.eng.bos.redhat.com)(gcc version 4.4.7

20120313(Red Hat 4.4.7-16) (GCC) ) #1 SMP Fri Sep 25 19:24:22 EDT 2015

 

<cts02-M0001:root>/root:

#  cat /etc/issue

 

Unauthorizeduse of this system is prohibited and may be prosecuted

to thefullest extent of the law. By using this system, you implicitly

agree tomonitoring by system management and law enforcement authorities.

If you donot agree with these terms, DISCONNECT NOW.

0 0
原创粉丝点击