如何查看Linux版本号

来源:互联网 发布:mac os美化桌面截图 编辑:程序博客网 时间:2024/05/08 04:04

方法1. uname -r 命令

[root@localhost Note]# uname -r
3.10.0-123.el7.x86_64

方法2. cat /proc/version

[root@localhost Note]# cat /proc/version
Linux version 3.10.0-123.el7.x86_64 (mockbuild@x86-017.build.eng.bos.redhat.com) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon May 5 11:16:57 EDT 2014

方法3. cat /etc/redhat-release

[root@localhost Desktop]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

1 0
原创粉丝点击