如何查看Linux版本号

方法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 ([email protected]) (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)

你可能感兴趣的:(linux)