티스토리 뷰
목차
개요[편집]
- 어떤 리눅스를 사용하고 있는가?
- 리눅스 배포판의 이름과 버전, 리눅스 커널 버전을 모두 답하는 것이 가장 정확하다.[1]
- 리눅스 배포판 목록: http://ko.wikipedia.org/wiki/리눅스_배포판
배포판 버전 확인[편집]
방법 1: /etc/*-release[편집]
- 명령어
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: /etc/issue*[편집]
- 명령어
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 (레드햇계열)[편집]
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
커널 버전 확인[편집]
방법 1: uname[편집]
- 리눅스 커널 버전 확인 문서를 참고하십시오.
uname -r
- 실행예시 (Fedora 11, VM)
[root@zetawiki ~]# uname -r
2.6.30.10-105.2.23.fc11.x86_64
- 실행예시 (CentOS 5.7, Xen VM)
[root@zetawiki ~]# uname -r
2.6.18-274.3.1.el5xen
- 실행예시 (SUSE Linux Enterprise Server 11, Xen VM)
zetawiki:~ # uname -r
2.6.32.59-0.7-xen
- 실행예시 (Ubuntu 12.04.3 LTS)
root@ubuntu:~# uname -r
3.8.0-29-generic
root@ubuntu:~# uname -a
Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
방법 2: /proc/version (레드햇 계열)[편집]
[root@CentOS64 ~]# cat /proc/version
Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 00:31:26 UTC 2013
'리눅스' 카테고리의 다른 글
[ubuntu] Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04 (0) | 2018.04.13 |
---|---|
memcached log lotate (0) | 2016.07.13 |
CentOs7 한글 설정 (0) | 2015.09.16 |
SCP 사용법 (0) | 2015.09.14 |
VMware 에 CentOS 7 Server 설치하여 사용하기 [Linux]/Server (0) | 2015.08.25 |
댓글