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건 1 페이지
  • RSS
기술자료 목록
2650
영카트   137  2026-03-22 22:26 ~ 2026-03-24 12:36  
2649
영카트   188  2026-03-20 14:42 ~ 2026-03-20 14:52  
2648
그누보드   384  2026-02-03 11:54 ~ 2026-02-03 11:58  
2647
그누보드   403  2026-02-03 11:51  
2646
그누보드   576  2026-02-02 19:40 ~ 2026-02-03 11:44  
2645
Search   895  2025-10-15 17:04 ~ 2025-10-23 00:29  
2644
MySQL   1178  2025-08-28 17:54 ~ 2025-08-28 17:55  
2643
PHP   2620  2025-02-07 09:27 ~ 2025-02-07 16:59  
2642
그누보드   2281  2025-02-07 08:55 ~ 2025-02-07 17:04  
2641
그누보드   2461  2024-11-26 21:14 ~ 2024-11-26 21:22  
2640
그누보드   5045  2024-11-22 10:52 ~ 2024-11-22 11:03  
2639
호스팅   2920  2024-11-19 14:41 ~ 2024-11-19 21:17  
2638
Linux   2115  2024-11-18 15:45 ~ 2024-11-18 15:48  
2637
일반   1880  2024-11-15 16:45 ~ 2024-11-15 16:46  
2636
Secure   2042  2024-11-06 18:48 ~ 2024-11-06 18:50  
2635
영카트   2390  2024-10-21 13:44 ~ 2025-08-29 23:40  
2634
전자결제   3931  2024-09-05 09:30  
2633
MySQL   2891  2024-03-29 14:14 ~ 2024-03-29 14:14  
2632
그누보드   3137  2024-02-23 18:40 ~ 2024-02-24 06:13  
2631
JavaScript   3143  2024-02-16 18:50 ~ 2024-02-16 20:37  

검색

해피정닷컴 정보

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

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