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