

1.目前银河银河麒麟高级服务器操作系统V10发行版如下:
(Tercel) 版本是 银河麒麟 V10 SP1 版本
(Sword) 版本是 银河麒麟 V10 SP2 版本
(Lance) 版本是 银河麒麟 V10 SP3 版本
2.我们可使用如下三种方式(命令)进行对应银河麒麟操作系统版本的查询:
[root@oqfyrvws bin]# nkvers
############## Kylin Linux Version #################
Release:
Kylin Linux Advanced Server release V10 (Sword)
Kernel:
4.19.90-24.4.v2101.ky10.x86_64
Build:
Kylin Linux Advanced Server
release V10 (SP2) /(Sword)-x86_64-Build09/20210524
#################################################
[root@oqfyrvws bin]# 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@oqfyrvws bin]# cat /etc/.productinfo
Kylin Linux Advanced Server
release V10 (SP2) /(Sword)-x86_64-Build09/20210524
3.扩展知识(提取版本信息):
[root@oqfyrvws bin]# release=$(grep -e "^VERSION=" /etc/os-release | cut -f 2 -d "=" | tr -d '[:punct:][:space:]')
[root@oqfyrvws bin]# echo $release
V10Sword
评论