1. OS 이름 확인
[root@localhost /]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m
[root@localhost /]# cat /etc/issue.net
CentOS release 6.3 (Final)
Kernel \r on an \m
[root@localhost /]# cat /etc/redhat-release
CentOS release 6.3 (Final)
2. OS 버전 확인
[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost /]# cat /proc/version
Linux version 2.6.32-279.5.2.el6.x86_64 (mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Aug 24 01:07:11 UTC 2012
[root@localhost /]# cat /etc/rc.sysinit | grep PRODUCT=
PRODUCT=$(sed "s/Red Hat \(.*\) release.*/\1/" /etc/system-release)
PRODUCT=$(sed "s/Fedora \(.*\) \?release.*/\1/" /etc/system-release)
PRODUCT=$(sed "s/CentOS \(.*\) \?release.*/\1/" /etc/system-release)
PRODUCT=$(sed "s/ release.*//g" /etc/system-release)
3. Bit 확인
[root@localhost /]# getconf LONG_BIT
64
'LINUX' 카테고리의 다른 글
공인 IP 확인 (1) | 2018.09.07 |
---|---|
[httpd] - 디렉토리 권한 문제 (3) | 2012.11.09 |
자바 프로세스 종료 (0) | 2012.08.27 |
[RPM] - 명령어 정리 (1) | 2012.08.06 |
ssh 연결방법 (0) | 2012.08.06 |