OS 버전 확인 / CentOS / Ubuntu > 기술자료

본문 바로가기

사이트 내 전체검색

OS 버전 확인 / CentOS / Ubuntu > 기술자료

Linux OS 버전 확인 / CentOS / Ubuntu

페이지 정보


본문

[ CentOS 6.x ]

1. lsb_release 로 버전 확인하기
[root@localhost local]# Isb_release -a
-bash: Isb_release: command not found

lsb_release 에러가 날때는 아래 2개의 패키지를 설치합니다.
# yum provides */lsb_release
# yum install redhat-lsb

[root@localhost local]# Isb_release -a
LSB Version:  :base-4.0-amd64:base-4.0-moarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.8 (Final)
Release: 6.8
Codename: Final


2. rpm 으로 버전 확인하기
[root@localhost local]# rpm -qa | grep release
CentOS Linux release 6.8 (Final)


3. cat 으로 버전 확인하기
[root@localhost local]# cat /etc/redhat-release
CentOS release 6.8 (Final)



[ CentOS 7.x ]

1. rpm 으로 버전 확인하기
[root@localhost local]# rpm -qa | grep release
centos-release-7-3.1611.el7.centos.x86_64


2. cat 으로 버전 확인하기
[root@localhost local]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core) 



[ OS bit 확인하기 ]
[happyjung@www www]$ getconf LONG_BIT
32



[ Ubuntu 18.x ]

root@happyjung:/# /etc/*-release
bash: /etc/lsb-release: Permission denied

root@happyjung:/# cat /etc/*-release | uniq
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@happyjung:/# cat /etc/issue
Ubuntu 18.04.1 LTS \n \l

root@happyjung:/# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
root@izar_srv:/etc/apache2/conf-available# 



관련자료
https://kldp.org/node/109636 
https://kenno.wordpress.com/2012/10/21/centos-lsb_release-command-not-found/
http://ongal.tistory.com/190
https://zetawiki.com/wiki/리눅스_종류_확인,_리눅스_버전_확인
http://funnymins.tistory.com/102

댓글목록

등록된 댓글이 없습니다.


Total 2,650건 39 페이지
  • RSS
기술자료 목록
1890
JSP   13514  2017-02-17 21:17  
1889
JSP   15058  2017-02-17 21:02  
1888
MSSQL   14077  2017-02-15 22:27  
1887
JSP   13370  2017-02-15 19:02  
1886
JSP   13740  2017-02-15 12:59  
1885
Java   10091  2017-02-15 01:04  
1884
APP   14360  2017-02-14 21:39  
1883
그누보드   17178  2017-02-13 20:44 ~ 2017-03-02 00:00  
1882
영카트   9922  2017-02-09 15:13 ~ 2017-02-09 00:00  
1881
일반   10309  2017-02-07 01:59  
1880
WordPress   11436  2017-02-03 15:00  
1879
SNS   9391  2017-02-03 01:48  
1878
WordPress   10410  2017-02-01 21:01 ~ 2018-12-19 20:27  
1877
Adobe   14793  2017-01-25 16:54  
1876
일반   14333  2017-01-24 17:05 ~ 2020-10-31 17:14  
1875
Search   12076  2017-01-23 13:40  
1874
Search   22957  2017-01-20 15:15 ~ 2017-12-05 18:34  
1873
그누보드   13474  2017-01-17 07:52 ~ 2022-04-15 19:47  
1872
그누보드   14948  2017-01-17 02:10  
1871
그누보드   12324  2017-01-09 15:27  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2026 해피정닷컴. All Rights Reserved.