查看Linux系统版本信息
[root@host-172-20-105-194 ~]# cat /proc/version
Linux version 4.19.90-24.4.v2101.ky10.aarch64 (KYLINSOFT@localhost.localdomain) (gcc version 7.3.0 (GCC)) #1 SMP Mon May 24 14:45:37 CST 2021
[root@shijuezhongshu-ceshi-yingyong-dameng ~]# cat /proc/version
Linux version 3.10.0-1160.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Mon Oct 19 16:18:59 UTC 2020
[root@shijuezhongshu-ceshi-yingyong-dameng ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@shijuezhongshu-ftp ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
cat /etc/os-release
[root@mvp1 opt]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@mvp1 ~]# cat /etc/os-release NAME="Kylin Linux Advanced Server" VERSION="V10 (Sword)" ID="kylin" VERSION_ID="V10" PRETTY_NAME="Kylin Linux Advanced Server V10 (Sword)" ANSI_COLOR="0;31"
麒麟单独的命令
[root@mvp1 ~]# nkvers ############## Kylin Linux Version ################# Release: Kylin Linux Advanced Server release V10 (Sword) Kernel: 4.19.90-24.4.v2101.ky10.aarch64 Build: Kylin Linux Advanced Server release V10 (SP2) /(Sword)-aarch64-Build09/20210524
[root@mvp1 ~]# cat /etc/.productinfo Kylin Linux Advanced Server release V10 (SP2) /(Sword)-aarch64-Build09/20210524
【信创】如何查看KylinOS银河麒麟操作系统版本?
https://www.jianshu.com/p/c004d834c69a
(Tercel) 版本是 银河麒麟 V10 SP1 版本
(Sword) 版本是 银河麒麟 V10 SP2 版本
(Lance) 版本是 银河麒麟 V10 SP3 版本
linux查看版本命令的方法是:
1、# uname -a (Linux查看版本当前操作系统内核信息)
2、# cat /proc/version (Linux查看当前操作系统版本信息)
3、# cat /etc/issue 或 cat /etc/redhat-release (Linux查看版本当前操作系统发行版信息)
4、# cat /proc/cpuinfo (Linux查看cpu相关信息,包括型号、主频、内核信息等)
5、# getconf LONG_BIT (Linux查看版本多少位)
6、# lsb_release -a (CentOS 6.9版本需要安装lsb,CentOS 7.0以上直接可以使用,网上都说Linux都支持,我只验证过CentOS系统)