📅  最后修改于: 2023-12-03 15:38:49.992000             🧑  作者: Mango
在 SUSE Linux Enterprise Server (SLES) 上,您可能想要检查您正在运行的版本。有几种方法可以做到这一点:
cat /etc/SuSE-release
命令该命令将显示 SLES 版本的详细信息。示例输出如下:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
lsb_release -a
命令该命令将显示操作系统的详细信息,包括版本。示例输出如下:
LSB Version:
core-2.0-amd64:core-2.0-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 12
Release: 12
Codename: n/a
该文件包含有关操作系统的详细信息,包括版本。可以使用以下命令检查该文件:
cat /etc/os-release
示例输出如下:
NAME="SLES"
VERSION="12-SP4"
VERSION_ID="12.4"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp4"
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
无论您选择哪种方法,检查 SLES 版本都非常简单。