리눅스 커널 버전 확인

리눅스 커널 버전 확인

1 방법 1: uname[ | ]

[root@zetawiki ~]# uname -r
2.6.32-279.el6.x86_64
[root@zetawiki ~]# uname -r
2.6.18-274.3.1.el5xen
root@zetawiki:~# uname -r
4.4.0-31-generic

2 방법 2: hostnamectl[ | ]

root@zetawiki:~# hostnamectl | grep Kernel
            Kernel: Linux 4.4.0-31-generic

3 방법 3: /proc/version[ | ]

[root@hostname ~]# cat /proc/version
Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012
root@zetawiki:~# cat /proc/version
Linux version 3.16.0-30-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015

4 방법 4: last[ | ]

[root@zetawiki ~]# last reboot | head -1
reboot   system boot  2.6.32-279.el6.x Sat Mar  9 02:55 - 03:25  (00:30)
root@zetawiki:~# last | grep reboot | head -1
reboot   system boot  3.16.0-30-generi Wed Mar 15 05:00 - 11:22  (06:21)

5 방법 5: dpkg (우분투)[ | ]

root@zetawiki:~# dpkg -l | grep linux-generic
ii  linux-generic                         3.13.0.100.108                    amd64        Complete Generic Linux kernel and headers
root@zetawiki:~# dpkg -l | grep linux-generic
root@zetawiki:~# dpkg -l | grep linux-headers
ii  linux-headers-3.19.0-49             3.19.0-49.55~14.04.1hf1533043v20160201b1 all          Header files related to Linux kernel version 3.19.0
ii  linux-headers-3.19.0-49-generic     3.19.0-49.55~14.04.1hf1533043v20160201b1 amd64        Linux kernel headers for version 3.19.0 on 64 bit x86 SMP

6 방법 6: rpm (CentOS)[ | ]

[root@zetawiki ~]# rpm -qa kernel
kernel-2.6.32-279.el6.x86_64

7 방법 7: yum (CentOS)[ | ]

[root@zetawiki ~]# yum info installed kernel | egrep "^Version|^Release"
Version     : 2.6.32
Release     : 279.el6
[root@zetawiki ~]# yum list installed | grep ^kernel
kernel.x86_64           2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-devel.x86_64     2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-firmware.noarch  2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-headers.x86_64   2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3

8 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}