반응형
아래와 같은 방법들이 있다.
# 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
반응형
'DB,서버,OS 등' 카테고리의 다른 글
[Centos7] ip 확인 ip address, ifconfig (0) | 2020.04.17 |
---|---|
[Centos] centos6,7 timezone 변경하기 (0) | 2020.04.07 |
[Centos] centos7 에 firewall 설치 (0) | 2020.03.19 |
[Linux] 압축 명령어 tar, gz, zip (0) | 2020.02.21 |
[linux] Remove Directory ( 폴더 삭제 ) (0) | 2020.02.20 |
댓글