관리 메뉴

Hacking Arts

[Linux] version 확인법 본문

Computer & ETC/linux

[Linux] version 확인법

Rakehell 2014. 8. 23. 02:01

[root@localhost ~]# uname -a

Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007

i686 i686 i386 GNU/Linux



[root@localhost ~]# cat /etc/issue

Fedora release 8 (Werewolf)

Kernel \r on an \m



[root@localhost ~]# cat /etc/issue.net

Fedora release 8 (Werewolf)

Kernel \r on an \m



[root@localhost ~]# cat /etc/redhat-release

Fedora release 8 (Werewolf)



[root@localhost ~]# cat /proc/version

Linux version 2.6.23.1-42.fc8 (kojibuilder@xenbuilder4.fedora.phx.redhat.com)

(gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Tue Oct 30 13:55:12 EDT 2007



[root@localhost ~]# cat /etc/rc.sysinit | grep PRODUCT

 PRODUCT=`sed "s/Red Hat \(.*\) release.*/\1/" /etc/redhat-release`

 echo " $PRODUCT"

 PRODUCT=`sed "s/Fedora \(.*\) \?release.*/\1/" /etc/redhat-release`

 echo " $PRODUCT"

 PRODUCT=`sed "s/ release.*//g" /etc/redhat-release`

 echo "$PRODUCT"


출처 : http://tisiphone.tistory.com/72

'Computer & ETC > linux' 카테고리의 다른 글

[Linux] Daemon  (0) 2014.08.23
[Linux] 리눅스 인증과 패스워드  (0) 2014.08.23
[Linux] lspci and ldd  (0) 2014.08.23
[Linux] User & Group Administration  (0) 2014.08.23
[Linux] Boot Sequence  (0) 2014.08.23