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건 2 페이지
  • RSS
기술자료 목록
2630
Java   3274  2024-02-06 16:49  
2629
PHP   3521  2024-02-06 16:42  
2628
호스팅   2749  2024-01-29 12:54  
2627
PHP   2718  2024-01-26 11:04 ~ 2024-01-26 11:13  
2626
MySQL   2829  2024-01-08 17:37 ~ 2024-03-14 16:00  
2625
SQL   3134  2024-01-08 12:36  
2624
영카트   3305  2024-01-04 14:57  
2623
일반   4046  2023-12-15 18:33  
2622
Android   3197  2023-11-30 18:48 ~ 2023-11-30 19:41  
2621
전자결제   5583  2023-11-23 19:53  
2620
PHP   4636  2023-11-20 10:56 ~ 2023-11-20 11:14  
2619
Linux   3546  2023-11-09 19:55  
2618
그누보드   4188  2023-11-06 20:38  
2617
Linux   4319  2023-11-01 21:41 ~ 2023-11-02 10:30  
2616
영카트   3256  2023-10-07 23:31  
2615
SNS   4322  2023-09-24 17:56  
2614
ClassicASP   3798  2023-09-14 08:38  
2613
APP   3215  2023-09-08 12:34 ~ 2023-09-08 17:36  
2612
Apple   5183  2023-09-01 18:16 ~ 2023-09-01 18:36  
2611
SNS   4042  2023-08-30 17:10  

검색

해피정닷컴 정보

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

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