본문 바로가기
DB,서버,OS 등

[Centos] centos 버전 확인하기 (Version Check Centos)

by bryan.oh 2020. 2. 20.
반응형

 

아래와 같은 방법들이 있다.

# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

 

# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)

 

# 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"

 

# cat /etc/system-release
CentOS Linux release 7.4.1708 (Core)

 

# rpm -qf /etc/redhat-release
centos-release-7-4.1708.el7.centos.x86_64

 

 

Check Kernel version

# uname -s -r
Linux 3.10.0-693.21.1.el7.x86_64
# uname -a
Linux geeklab 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# uname -v
#1 SMP Wed Mar 7 19:03:37 UTC 2018

 

 

Check Centos7 Version

# hostnamectl
   Static hostname: geeklab
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f9afeb75a5a382dce8269887a67fbf58
           Boot ID: 668b5c55c6b9438b9356438d8beceec6
    Virtualization: xen
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-693.21.1.el7.x86_64
      Architecture: x86-64
728x90
반응형

댓글