반응형
리눅스 배포판의 이름과 버전, 리눅스 커널 버전을 모두 답하는 것이 가장 정확하다
배포판 버전 확인
방법1:
grep . /etc/*-release
cat /etc/*-release | uniq
(Ubuntu 14.04.3)
root@zetawiki:~# grep . /etc/*-release /etc/lsb-release:DISTRIB_ID=Ubuntu /etc/lsb-release:DISTRIB_RELEASE=14.04 /etc/lsb-release:DISTRIB_CODENAME=trusty /etc/lsb-release:DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS" /etc/os-release:NAME="Ubuntu" /etc/os-release:VERSION="14.04.3 LTS, Trusty Tahr" /etc/os-release:ID=ubuntu /etc/os-release:ID_LIKE=debian /etc/os-release:PRETTY_NAME="Ubuntu 14.04.3 LTS" /etc/os-release:VERSION_ID="14.04" /etc/os-release:HOME_URL="http://www.ubuntu.com/" /etc/os-release:SUPPORT_URL="http://help.ubuntu.com/" /etc/os-release:BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
(CentOS 6.5)
[root@zetawiki ~]# grep . /etc/*-release /etc/centos-release:CentOS release 6.5 (Final) /etc/lsb-release:LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch /etc/redhat-release:CentOS release 6.5 (Final) /etc/system-release:CentOS release 6.5 (Final)
(Fedora 11 Leonidas)
[root@zetawiki ~]# cat /etc/*-release | uniq Fedora release 11 (Leonidas)
(Oracle Enterprise Linux Server 5.5)
[root@zetawiki ~]# cat /etc/*-release | uniq Enterprise Linux Enterprise Linux Server release 5.5 (Carthage) Red Hat Enterprise Linux Server release 5.5 (Tikanga)
(SUSE Linux Enterprise Server 11)
zetawiki:~ # cat /etc/*-release | uniq SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
방법2:
grep . /etc/issue*
(Ubuntu 14.04.3)
root@zetawiki:~# grep . /etc/issue* /etc/issue:Ubuntu 14.04.3 LTS \n \l /etc/issue.net:Ubuntu 14.04.3 LTS
(CentOS 6.5)
[root@zetawiki ~]# grep . /etc/issue* /etc/issue:CentOS release 6.5 (Final) /etc/issue:Kernel \r on an \m /etc/issue.net:CentOS release 6.5 (Final) /etc/issue.net:Kernel \r on an \m
(Fedora 11)
[root@zetawiki ~]# cat /etc/issue Fedora release 11 (Leonidas) Kernel \r on an \m (\l)
(Oracle Enterprise Linux 5.5)
[root@zetawiki ~]# cat /etc/issue Enterprise Linux Enterprise Linux Server release 5.5 (Carthage) Kernel \r on an \m
(SUSE Linux Enterprise Server 11)
zetawiki:~ # cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP1 (x86_64) - Kernel \r (\l).
방법3:
rpm -qa *-release
(CentOS 6.2)
[root@zetawiki ~]# rpm -qa *-release centos-release-6-2.el6.centos.7.x86_64
(Fedora 11 Leonidas)
[root@zetawiki ~]# rpm -qa *-release fedora-release-11-1.noarch
(Oracle Enterprise Linux Server 5.5)
[root@zetawiki ~]# rpm -qa *-release enterprise-release-5-0.0.22
(SUSE Linux Enterprise Server 11)
zetawiki:~ # rpm -qa *-release
sles-release-11.1-1.152
lsb-release-2.0-1.2.18
반응형
'경험치바(Experience Opint Bar)' 카테고리의 다른 글
[오라클] 오라클 DB 문자셋 확인 방법 (0) | 2016.02.16 |
---|---|
리눅스 커널 버전 확인 방법 (0) | 2016.01.06 |
bash 쉘 제어구조 (0) | 2015.12.28 |
bash 쉘 변수 (0) | 2015.12.24 |
bash 쉘 주석 (0) | 2015.12.24 |